chore(release): add latest tag only on release tags (#766)

This commit is contained in:
Ronny Moreas
2023-03-26 05:12:49 +08:00
committed by GitHub
parent d276cd2902
commit 10d640b211
+2 -1
View File
@@ -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