Tag uncached builds with the date

The weekly rebuild overwrites latest/main/<sha> with a fresh image of
the same commit; a YYYYMMDD tag keeps each week's image to roll back to.
Keyed on no-cache, since a called workflow never sees the schedule event.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
thomas.gloorandClaude Opus 5.5 committed 2026-10-26 11:22:03 +01:00
1 parent 0e1e97534f
commit ae3636baab
2 files changed
+7 -1

No files matched your search

+6
View File
@@ -68,6 +68,11 @@ jobs:
username: ${{ gitea.actor }}
password: ${{ secrets.REGISTRY_TOKEN }}
# Uncached builds (the callers' weekly rebuild) also get a YYYYMMDD tag:
# they overwrite latest/main/<sha> with an image of the same commit, so
# the date tag is what's left to roll back to. Keyed on no-cache rather
# than type=schedule, because a called workflow only ever sees the
# event workflow_call.
- name: Extract metadata
id: meta
uses: docker/metadata-action@v6
@@ -78,6 +83,7 @@ jobs:
type=semver,pattern={{version}}
type=sha,prefix=,format=short
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value={{date 'YYYYMMDD'}},enable=${{ inputs.no-cache }}
# Each platform is built into the local Docker daemon on its own (a
# multi-platform image can't be loaded), scanned against the Trivy server,