From ca4c8ca4bf8dfdffa83d575b13eb5fc6a982529c Mon Sep 17 00:00:00 2001 From: Dezmerean Robert Date: Tue, 3 Jan 2023 14:14:50 +0200 Subject: [PATCH] Update example workflows page (#16419) --- _includes/gha-tutorial.md | 16 ++++++++-------- build/ci/github-actions/examples.md | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/_includes/gha-tutorial.md b/_includes/gha-tutorial.md index c25b6701ca..cb25b7bb9c 100644 --- a/_includes/gha-tutorial.md +++ b/_includes/gha-tutorial.md @@ -20,14 +20,14 @@ Create a GitHub repository and configure the Docker Hub secrets. 2. Open the repository **Settings**, and go to **Secrets** > **Actions**. -3. Create a new secret named `DOCKER_HUB_USERNAME` and your Docker ID as value. +3. Create a new secret named `DOCKERHUB_USERNAME` and your Docker ID as value. 4. Create a new [Personal Access Token (PAT)](/docker-hub/access-tokens/#create-an-access-token) for Docker Hub. You can name this token `clockboxci`. 5. Add the PAT as a second secret in your GitHub repository, with the name - `DOCKER_HUB_ACCESS_TOKEN`. + `DOCKERHUB_TOKEN`. With your repository created, and secrets configured, you're now ready for action! @@ -85,8 +85,8 @@ jobs: name: Login to Docker Hub uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKER_HUB_USERNAME }} - password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -97,7 +97,7 @@ jobs: context: . file: ./Dockerfile push: true - tags: ${{ secrets.DOCKER_HUB_USERNAME }}/clockbox:latest + tags: ${{ secrets.DOCKERHUB_USERNAME }}/clockbox:latest ``` {% endraw %} @@ -145,8 +145,8 @@ jobs: name: Login to Docker Hub uses: docker/login-action@v2 with: - username: ${{ secrets.DOCKER_HUB_USERNAME }} - password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 @@ -157,7 +157,7 @@ jobs: context: . file: ./Dockerfile push: true - tags: ${{ secrets.DOCKER_HUB_USERNAME }}/clockbox:latest + tags: ${{ secrets.DOCKERHUB_USERNAME }}/clockbox:latest ``` {% endraw %} diff --git a/build/ci/github-actions/examples.md b/build/ci/github-actions/examples.md index 073e61864e..8257362ea1 100644 --- a/build/ci/github-actions/examples.md +++ b/build/ci/github-actions/examples.md @@ -919,10 +919,10 @@ jobs: tags: user/app:latest - name: Update repo description - uses: peter-evans/dockerhub-description@v2 + uses: peter-evans/dockerhub-description@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_PASSWORD }} + password: ${{ secrets.DOCKERHUB_TOKEN }} repository: user/app ``` {% endraw %}