From 8c62973f0205f1cf961e892b80839c9350c02c61 Mon Sep 17 00:00:00 2001 From: Vladislav Safonov <29694249+ntdesmond@users.noreply.github.com> Date: Sun, 18 Sep 2022 18:36:20 +0300 Subject: [PATCH] Update versions of actions used in the workflow --- ci-cd/github-actions.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ci-cd/github-actions.md b/ci-cd/github-actions.md index 6f3f265f2a..81c447f5eb 100644 --- a/ci-cd/github-actions.md +++ b/ci-cd/github-actions.md @@ -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 @@ -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 @@ -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 }}