From a9fa5fa3ec5fc67c6d2b7b967c103c586a9d858c Mon Sep 17 00:00:00 2001 From: Nikita Melnikov Date: Fri, 22 Jul 2022 20:50:36 +0800 Subject: [PATCH 1/2] update actions versions --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 71bcbdde..f7413eb7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,10 +17,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Login to GitHub Container Registry - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} @@ -28,7 +28,7 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v4 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | @@ -39,7 +39,7 @@ jobs: type=semver,pattern={{major}}.{{minor}} - name: Build and push image - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: context: . file: docker/Dockerfile.prod From db43c03920544da28d2b21c3c2d9fa8f17cffe4f Mon Sep 17 00:00:00 2001 From: Nikita Melnikov Date: Fri, 22 Jul 2022 21:53:33 +0800 Subject: [PATCH 2/2] fix --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f7413eb7..bb7b76fc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,7 +34,7 @@ jobs: tags: | type=ref,event=branch type=ref,event=pr - type=raw,value={{branch}}-{{sha}}-{{date 'X'}} + type=raw,value={{branch}}-{{sha}}-{{date 'X'}},enable=${{ startsWith(github.ref, 'refs/heads') }} type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}}