From 3adc418d8f45c473fe21a86d5b61f17a02d539ea Mon Sep 17 00:00:00 2001 From: Claude Bot Date: Wed, 28 Oct 2026 06:41:02 +0000 Subject: [PATCH] ci: publish one tag per build, YYYY-MM-DD-HHMM Gitea's konairius package cleanup rule keeps the most recent version and counts every tag as one. This pipeline pushes four tags per build, main last, so once a build ages out the rule keeps only :main and deletes the build. tag that homelab's ImagePolicy wiki tracks and the Deployment runs. vsftpd broke exactly that way (homelab #1509). The image now gets exactly one tag, the date scheme the other in-house images use. homelab's ImagePolicy wiki switches to it in the paired homelab PR. Co-Authored-By: Claude Opus 5.5 --- .woodpecker/release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.woodpecker/release.yml b/.woodpecker/release.yml index e1f441e..b6b9864 100644 --- a/.woodpecker/release.yml +++ b/.woodpecker/release.yml @@ -19,14 +19,14 @@ steps: # The repo owner is an organisation; the registry login is the bot in its Bots team. - AUTH=$(printf "%s" "claude-bot:$GITEA_TOKEN" | base64 -w0) - printf '{"auths":{"%s":{"auth":"%s"}}}' "$$REGISTRY" "$AUTH" > /kaniko/.docker/config.json - - BUILD_TAG="build.$(date +%s)" + # One tag per build, YYYY-MM-DD-HHMM (UTC): the homelab Flux + # ImagePolicy rolls out the newest, and Gitea's cleanup rule counts + # every tag as a version, so extra tags would push this one out. + - TAG="$(date +%Y-%m-%d-%H%M)" - >- /kaniko/executor --context=. --dockerfile=Dockerfile - --destination=$$IMAGE:${CI_COMMIT_SHA} - --destination=$$IMAGE:${CI_COMMIT_SHA:0:7} - --destination=$$IMAGE:$${BUILD_TAG} - --destination=$$IMAGE:main + --destination=$$IMAGE:$${TAG} --snapshot-mode=redo --use-new-run