Skip to content

Use latest or tag when building image#169

Merged
jeanlaurent merged 1 commit intomainfrom
buildtag
Sep 11, 2025
Merged

Use latest or tag when building image#169
jeanlaurent merged 1 commit intomainfrom
buildtag

Conversation

@jeanlaurent
Copy link
Copy Markdown
Member

  1. Replaced type=ref,event=branch with
    type=raw,value=latest,enable={{is_default_branch}}
    • This will tag builds from the main branch (default
      branch) as "latest" instead of "main"
  2. Kept type=ref,event=tag
    - This ensures version tag builds (like v1.0.0) are tagged
    with their actual tag name

Now when:

  • Building from the main branch → image will be tagged as
    latest
  • Building from a version tag like v1.0.0 → image will be
    tagged as v1.0.0

Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
@jeanlaurent jeanlaurent requested a review from a team as a code owner September 11, 2025 14:33
@jeanlaurent jeanlaurent merged commit 06a8171 into main Sep 11, 2025
8 checks passed
@rumpl rumpl deleted the buildtag branch September 16, 2025 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants