mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-13 21:12:57 +00:00
📝 Update documentation
GH Actions replaces Travis
This commit is contained in:
@@ -77,42 +77,40 @@ git push -u origin master
|
|||||||
> NOTE: This section and the cookiecutter template should be updated to describe using GitHub
|
> NOTE: This section and the cookiecutter template should be updated to describe using GitHub
|
||||||
> Actions now that jupyter/docker-stacks uses that service.
|
> Actions now that jupyter/docker-stacks uses that service.
|
||||||
|
|
||||||
Next, link your GitHub project to Travis CI to build your Docker image whenever you or someone else
|
The cookiecutter template comes with a `.github/workflows/docker.yml` file, which allows you to use GitHub actions to build your Docker image whenever you or someone else submits a pull request.
|
||||||
submits a pull request.
|
|
||||||
|
|
||||||
1. Visit
|
[TODO] - @trallard to add screenshots and details for GH actions
|
||||||
[https://docs.travis-ci.com/user/getting-started/#To-get-started-with-Travis-CI](https://docs.travis-ci.com/user/getting-started/#To-get-started-with-Travis-CI)
|
|
||||||
and follow the instructions to add the Travis CI application to your GitHub account.
|
|
||||||
2. Visit [https://travis-ci.org](https://travis-ci.org).
|
|
||||||
3. Click the + symbol at the top of the left sidebar.
|
|
||||||

|
|
||||||
4. Locate your project repository either in your primary user account or in one of the organizations
|
|
||||||
to which you belong.
|
|
||||||
5. Click the toggle to enable builds for the project repository.
|
|
||||||
6. Click the **Settings** button for that repository.
|
|
||||||

|
|
||||||
7. Enable **Build only if .travis.yml is present** and **Build pushed pull requests**.
|
|
||||||

|
|
||||||
8. Disable **Build pushed branches**.
|
|
||||||
|
|
||||||
## Configuring Docker Cloud
|
## Configuring Docker Cloud
|
||||||
|
|
||||||
Now, configure Docker Cloud to build your stack image and push it to Docker Hub repository whenever
|
Now, configure Docker Cloud to build your stack image and push it to Docker Hub repository whenever
|
||||||
you merge a GitHub pull request to the master branch of your project.
|
you merge a GitHub pull request to the master branch of your project.
|
||||||
|
|
||||||
1. Visit [https://cloud.docker.com/](https://cloud.docker.com/) and login.
|
1. Visit [https://cloud.docker.com/](https://cloud.docker.com/) and log in.
|
||||||
2. Select the account or organization matching the one you entered when prompted with `stack_org` by
|
2. Select the account or organization matching the one you entered when prompted with `stack_org` by the cookiecutter.
|
||||||
the cookiecutter. 
|

|
||||||
3. Scroll to the bottom of the page and click **Create repository**.
|
3. Scroll to the bottom of the page and click **Create repository**.
|
||||||
4. Enter the name of the image matching the one you entered when prompted with `stack_name` by the
|
4. Enter the name of the image matching the one you entered when prompted with `stack_name` by the cookiecutter.
|
||||||
cookiecutter. 
|

|
||||||
5. Enter a description for your image.
|
5. Enter a description for your image.
|
||||||
6. Click **GitHub** under the **Build Settings** and follow the prompts to connect your account if
|
6. Click **GitHub** under the **Build Settings** and follow the prompts to connect your account if it is not already connected.
|
||||||
it is not already connected.
|
7. Select the GitHub organization and repository containing your image definition from the dropdowns.
|
||||||
7. Select the GitHub organization and repository containing your image definition from the
|
|
||||||
dropdowns.
|
|
||||||

|

|
||||||
8. Click the **Create and Build** button.
|
8. Click the **Create and Build** button.
|
||||||
|
9. Click on your avatar on the top-right corner and select Account settings.
|
||||||
|

|
||||||
|
10. Click on **Security** and then click on the **New Access Token** button.
|
||||||
|

|
||||||
|
11. Enter a meaningful name for your token and click on **Create**
|
||||||
|

|
||||||
|
12. Copy the personal access token displayed in the next screen. **Note that you will not be able to see it again after you close the pop-up window**.
|
||||||
|
13. Head back to your GitHub repository and click on the **Settings tab**.
|
||||||
|

|
||||||
|
14. Click on the **Secrets** section and then on the **New repository secret** button on the top right corner (see image above).
|
||||||
|
15. Create a **DOCKERHUB_TOKEN** secret and paste the Personal Access Token from DockerHub in the *value* field.
|
||||||
|
.
|
||||||
|
16. Repeat the above step but creating a **DOCKERHUB_USERNAME** and replacing the *value* field with your DockerHub username. Your repository secrets section should look something like this:
|
||||||
|

|
||||||
|
|
||||||
## Defining Your Image
|
## Defining Your Image
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user