From 10d640b211e96a7156000b2fd59d08ec4a7ed271 Mon Sep 17 00:00:00 2001 From: Ronny Moreas Date: Sat, 25 Mar 2023 22:12:49 +0100 Subject: [PATCH] chore(release): add latest tag only on release tags (#766) --- .github/workflows/images.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/images.yaml b/.github/workflows/images.yaml index ddb92c5d..6b9cddba 100644 --- a/.github/workflows/images.yaml +++ b/.github/workflows/images.yaml @@ -56,11 +56,12 @@ jobs: uses: docker/metadata-action@v4 with: images: ghcr.io/${{ github.repository }}${{ matrix.image.suffix }} - flavor: latest=true + flavor: latest=false tags: | type=raw,value=canary,enable=${{ github.ref == format('refs/heads/{0}', 'main') }} type=ref,event=pr type=semver,pattern={{raw}} + type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }} - name: Login to GitHub Container Registry uses: docker/login-action@v1