From 179be2b1cc31db3d274d9bfe37746b16c316c8bf Mon Sep 17 00:00:00 2001 From: Bal Narendra Sapa <61614290+balnarendrasapa@users.noreply.github.com> Date: Sun, 3 Dec 2023 14:03:17 -0500 Subject: [PATCH] Update docker-publish.yml --- .github/workflows/docker-publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 2a69cfd..42ac95c 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -68,6 +68,9 @@ jobs: uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tag_with_ref: 'master=latest' + # Add SHA tag + tag_with_sha: 'short' # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action @@ -77,10 +80,7 @@ jobs: with: context: ./deployment/ push: ${{ github.event_name != 'pull_request' }} - tags: | - ${{ steps.meta.outputs.tags }} - latest - sha-${{ github.sha }} + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max