Skip to content

Commit a079657

Browse files
committed
ci: restrict :latest tag to main branch only
Set flavor.latest=false so semver tag pushes no longer auto-add :latest. The explicit type=raw,value=latest,enable={{is_default_branch}} rule keeps :latest pinned to main, so a release tag won't shadow whatever main is currently shipping. https://claude.ai/code/session_012rsJRUue9w7sBD3J5gmKWK
1 parent b19e078 commit a079657

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ jobs:
181181
uses: docker/metadata-action@v5
182182
with:
183183
images: ${{ env.IMAGE_PREFIX }}/${{ matrix.component }}
184+
flavor: |
185+
latest=false
184186
tags: |
185187
type=raw,value=latest,enable={{is_default_branch}}
186188
type=raw,value=beta,enable=${{ github.ref == 'refs/heads/beta' }}

0 commit comments

Comments
 (0)