mirror of https://github.com/docker/docs.git
docs: Update instructions in language-specific guides. (#20060)
* docs: Update instructions in language-specific guides. * Update configure-ci-cd.md
This commit is contained in:
parent
0b4e2e599f
commit
74bad3df93
|
@ -27,7 +27,7 @@ Create a GitHub repository, configure the Docker Hub secrets, and push your sour
|
|||
|
||||
3. Create a new secret named `DOCKER_USERNAME` and your Docker ID as value.
|
||||
|
||||
4. Create a new [Personal Access Token (PAT)](../../security/for-developers/access-tokens.md/#create-an-access-token) for Docker Hub. You can name this token `tutorial-docker`.
|
||||
4. Create a new [Personal Access Token (PAT)](../../security/for-developers/access-tokens.md/#create-an-access-token) for Docker Hub. You can name this token `tutorial-docker`. Make sure access permissions include Read and Write.
|
||||
|
||||
5. Add the PAT as a second secret in your GitHub repository, with the name
|
||||
`DOCKERHUB_TOKEN`.
|
||||
|
@ -112,6 +112,8 @@ to Docker Hub.
|
|||
tags: ${{ secrets.DOCKER_USERNAME }}/${{ github.event.repository.name }}:latest
|
||||
```
|
||||
|
||||
If your Dockerfile is in a different directory, update the `context` with the path to the directory containing the Dockerfile.
|
||||
|
||||
For more information about the YAML syntax used here, see [Workflow syntax for GitHub Actions](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions).
|
||||
|
||||
## Step three: Run the workflow
|
||||
|
|
|
@ -27,7 +27,7 @@ Create a GitHub repository, configure the Docker Hub secrets, and push your sour
|
|||
|
||||
3. Create a new secret named `DOCKER_USERNAME` and your Docker ID as value.
|
||||
|
||||
4. Create a new [Personal Access Token (PAT)](../../security/for-developers/access-tokens.md/#create-an-access-token) for Docker Hub. You can name this token `docker-tutorial`.
|
||||
4. Create a new [Personal Access Token (PAT)](../../security/for-developers/access-tokens.md/#create-an-access-token) for Docker Hub. You can name this token `docker-tutorial`. Make sure access permissions include Read and Write.
|
||||
|
||||
5. Add the PAT as a second secret in your GitHub repository, with the name
|
||||
`DOCKERHUB_TOKEN`.
|
||||
|
@ -106,6 +106,8 @@ to Docker Hub.
|
|||
target: final
|
||||
tags: ${{ secrets.DOCKER_USERNAME }}/${{ github.event.repository.name }}:latest
|
||||
```
|
||||
|
||||
If your Dockerfile is in a different directory, update the `context` with the path to the directory containing the Dockerfile.
|
||||
|
||||
For more information about the YAML syntax used here, see [Workflow syntax for GitHub Actions](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions).
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ Create a GitHub repository, configure the Docker Hub secrets, and push your sour
|
|||
|
||||
3. Create a new secret named `DOCKER_USERNAME` and your Docker ID as value.
|
||||
|
||||
4. Create a new [Personal Access Token (PAT)](../../security/for-developers/access-tokens.md/#create-an-access-token) for Docker Hub. You can name this token `tutorial-docker`.
|
||||
4. Create a new [Personal Access Token (PAT)](../../security/for-developers/access-tokens.md/#create-an-access-token) for Docker Hub. You can name this token `tutorial-docker`. Make sure access permissions include Read and Write.
|
||||
|
||||
5. Add the PAT as a second secret in your GitHub repository, with the name
|
||||
`DOCKERHUB_TOKEN`.
|
||||
|
@ -111,6 +111,8 @@ to Docker Hub.
|
|||
target: final
|
||||
tags: ${{ secrets.DOCKER_USERNAME }}/${{ github.event.repository.name }}:latest
|
||||
```
|
||||
|
||||
If your Dockerfile is in a different directory, update the `context` with the path to the directory containing the Dockerfile.
|
||||
|
||||
For more information about the YAML syntax used here, see [Workflow syntax for GitHub Actions](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions).
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ Create a GitHub repository, configure the Docker Hub secrets, and push your sour
|
|||
|
||||
3. Create a new secret named `DOCKER_USERNAME` and your Docker ID as value.
|
||||
|
||||
4. Create a new [Personal Access Token (PAT)](../../security/for-developers/access-tokens.md/#create-an-access-token) for Docker Hub. You can name this token `python-docker`.
|
||||
4. Create a new [Personal Access Token (PAT)](../../security/for-developers/access-tokens.md/#create-an-access-token) for Docker Hub. You can name this token `python-docker`. Make sure access permissions include Read and Write.
|
||||
|
||||
5. Add the PAT as a second secret in your GitHub repository, with the name
|
||||
`DOCKERHUB_TOKEN`.
|
||||
|
@ -95,6 +95,8 @@ to Docker Hub.
|
|||
push: true
|
||||
tags: ${{ secrets.DOCKER_USERNAME }}/${{ github.event.repository.name }}:latest
|
||||
```
|
||||
|
||||
If your Dockerfile is in a different directory, update the `context` with the path to the directory containing the Dockerfile.
|
||||
|
||||
For more information about the YAML syntax used here, see [Workflow syntax for GitHub Actions](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions).
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ Create a GitHub repository, configure the Docker Hub secrets, and push your sour
|
|||
|
||||
3. Create a new secret named `DOCKER_USERNAME` and your Docker ID as value.
|
||||
|
||||
4. Create a new [Personal Access Token (PAT)](../../security/for-developers/access-tokens.md/#create-an-access-token) for Docker Hub. You can name this token `rust-docker`.
|
||||
4. Create a new [Personal Access Token (PAT)](../../security/for-developers/access-tokens.md/#create-an-access-token) for Docker Hub. You can name this token `rust-docker`. Make sure access permissions include Read and Write.
|
||||
|
||||
5. Add the PAT as a second secret in your GitHub repository, with the name
|
||||
`DOCKERHUB_TOKEN`.
|
||||
|
@ -95,6 +95,8 @@ to Docker Hub.
|
|||
push: true
|
||||
tags: ${{ secrets.DOCKER_USERNAME }}/${{ github.event.repository.name }}:latest
|
||||
```
|
||||
|
||||
If your Dockerfile is in a different directory, update the `context` with the path to the directory containing the Dockerfile.
|
||||
|
||||
For more information about the YAML syntax used here, see [Workflow syntax for GitHub Actions](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions).
|
||||
|
||||
|
@ -128,4 +130,4 @@ Related information:
|
|||
|
||||
Next, learn how you can locally test and debug your workloads on Kubernetes before deploying.
|
||||
|
||||
{{< button text="Test your deployment" url="./deploy.md" >}}
|
||||
{{< button text="Test your deployment" url="./deploy.md" >}}
|
||||
|
|
Loading…
Reference in New Issue