Skip to content

Commit 2d0071d

Browse files
committed
ci: emit commit short-SHA tag on docker publish
On every tag push, also tag the published image with the commit's short SHA (type=sha,prefix=,format=short) alongside the human-readable tag, so downstream consumers can pin to a specific commit hash without chasing the tag name.
1 parent 6e625f1 commit 2d0071d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/sequencer_docker-publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ jobs:
5757
type=semver,pattern={{raw}}
5858
type=semver,pattern={{version}}
5959
type=semver,pattern={{major}}.{{minor}}
60+
# Commit-hash tag: published on every tag push, lets downstream consumers
61+
# pin to a specific commit without needing to chase the human-readable tag.
62+
type=sha,prefix=,format=short,enable=${{ startsWith(github.ref, 'refs/tags/') && 'true' || 'false' }}
6063
# Manual workflow dispatch
6164
type=raw,value={{branch}}{{tag}}-{{sha}},enable=${{ github.event_name == 'workflow_dispatch' }}
6265

0 commit comments

Comments
 (0)