From 95baa0b710916f9f116ae16437386ad11d8bf4d8 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Wed, 10 Aug 2022 14:41:30 -0700 Subject: [PATCH] Better tags for latest --- .github/workflows/docker-publish.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 8f6da26..5a3194d 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -72,6 +72,11 @@ jobs: uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + # Tag default branch as latest + type=raw,value=latest,enable={{is_default_branch}} + # Semver tags for tagged versions + type=semver,pattern={{version}} # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action