Skip to content

Commit ed9f3da

Browse files
committed
fix(base-images): include the snapshot time in the immutable tag
The snapshot timestamp, not just its date, determines the published digests; a same-commit dispatch with an intra-day snapshot time could otherwise overwrite the tag and orphan the earlier digests.
1 parent 8bcb764 commit ed9f3da

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/base-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
echo "build_packages=$BUILD_PACKAGES"
9292
echo "suite=$SUITE"
9393
echo "snapshot=$SNAPSHOT"
94-
echo "publish_id=${SNAPSHOT:0:8}-${SHA:0:7}"
94+
echo "publish_id=${SNAPSHOT:0:8}-${SNAPSHOT:9:6}-${SHA:0:7}"
9595
echo "source_date_epoch=$EPOCH"
9696
echo "push=$PUSH"
9797
} >> "$GITHUB_OUTPUT"

base-images/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ images derived from these behave like their upstream bases.
1515

1616
Tags are mutable and rebuilt in place on demand; each rebuild picks up Debian
1717
security updates published up to its snapshot date. Every publish also pushes
18-
an immutable per-publish tag (snapshot date plus commit, e.g. `22-bookworm-20260812-45444a7`) so previously
18+
an immutable per-publish tag (snapshot timestamp plus commit, e.g. `22-bookworm-20260812-000000-45444a7`) so previously
1919
published digests stay tag-referenced; never delete these, since shipped CLI
2020
releases pin their digests. The
2121
runtime itself (the node or bun binaries from the upstream base) only moves

0 commit comments

Comments
 (0)