Skip to content

Commit d96daf5

Browse files
JohanDevlclaude
andcommitted
fix: restrict latest/main tags to semantic version tags only
- Change Docker tagging strategy to only apply latest/main tags on Git tag pushes - Prevent develop branch pushes from overriding latest tag - Ensure latest tag always points to the most recent semantic version release - Maintain develop tag exclusively for develop branch builds This ensures latest tag remains on the stable main branch versions only. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 441b69e commit d96daf5

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/docker-build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,12 @@ jobs:
8080
${{ env.REGISTRY_IMAGE }}
8181
${{ env.GITHUB_IMAGE }}
8282
tags: |
83-
# Main branch tags (manual or tag-triggered)
84-
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
85-
type=raw,value=main,enable=${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
86-
type=raw,value=${{ steps.version.outputs.version }},enable=${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
83+
# Latest tag - ONLY for git tags (semantic versions)
84+
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
85+
# Main tag - ONLY for git tags (semantic versions)
86+
type=raw,value=main,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
87+
# Semantic version tag - ONLY for git tags
88+
type=raw,value=${{ steps.version.outputs.version }},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
8789
# Develop branch tag
8890
type=raw,value=develop,enable=${{ github.ref == 'refs/heads/develop' }}
8991
# PR tags

wiki

Submodule wiki updated from a185d31 to d4ae537

0 commit comments

Comments
 (0)