diff --git a/content/language/dotnet/configure-ci-cd.md b/content/language/dotnet/configure-ci-cd.md index 6a08a48f40..8b5a02683e 100644 --- a/content/language/dotnet/configure-ci-cd.md +++ b/content/language/dotnet/configure-ci-cd.md @@ -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 diff --git a/content/language/java/configure-ci-cd.md b/content/language/java/configure-ci-cd.md index 1147a0b37d..792182bbe3 100644 --- a/content/language/java/configure-ci-cd.md +++ b/content/language/java/configure-ci-cd.md @@ -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). diff --git a/content/language/php/configure-ci-cd.md b/content/language/php/configure-ci-cd.md index 4ed965f589..1eeb50d7c0 100644 --- a/content/language/php/configure-ci-cd.md +++ b/content/language/php/configure-ci-cd.md @@ -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). diff --git a/content/language/python/configure-ci-cd.md b/content/language/python/configure-ci-cd.md index 60e323714f..019eda180c 100644 --- a/content/language/python/configure-ci-cd.md +++ b/content/language/python/configure-ci-cd.md @@ -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). diff --git a/content/language/rust/configure-ci-cd.md b/content/language/rust/configure-ci-cd.md index 58a41cf445..326d13ff7a 100644 --- a/content/language/rust/configure-ci-cd.md +++ b/content/language/rust/configure-ci-cd.md @@ -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" >}} \ No newline at end of file +{{< button text="Test your deployment" url="./deploy.md" >}}