From 83d40038b01062e290bbe4346036d3ca8c40c269 Mon Sep 17 00:00:00 2001 From: Bal Narendra Sapa <61614290+balnarendrasapa@users.noreply.github.com> Date: Sun, 3 Dec 2023 14:09:12 -0500 Subject: [PATCH] Update docker-publish.yml --- .github/workflows/docker-publish.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 265ed5d..6679f63 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -67,9 +67,13 @@ 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' + tags: | + type=ref,event=branch + type=sha,prefix=commit- + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=edge # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action