Skip to content

Commit

Permalink
Merge pull request docker#15682 from ntdesmond/patch-1
Browse files Browse the repository at this point in the history
Update versions of actions used in the workflow
  • Loading branch information
usha-mandya authored Sep 30, 2022
2 parents b809706 + 8c62973 commit 7a551c1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ci-cd/github-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,19 @@ BuildKit container under the hood.
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
-
name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
-
name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
file: ./Dockerfile
Expand Down Expand Up @@ -150,13 +150,13 @@ step:
```yaml
-
name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: ./
file: ./Dockerfile
Expand Down Expand Up @@ -243,7 +243,7 @@ Now let's change the Docker Hub login with the GitHub Container Registry one:
{% raw %}
```yaml
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down

0 comments on commit 7a551c1

Please sign in to comment.