Publish the version tag again on tag builds #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ci/version-tag"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Splitting the push into one job per tag dropped the version tag. It is still
computed and compiled into the binary —
wifipool-to-mqtt versionshows it —but no image tag is created from it any more, so a
v1.2.3release would havepublished
latestand the commit sha only. The README promises a version topin, and recommends pinning one in production.
A third job restores it. It is skipped unless the version differs from the
commit, which only a tag build produces, so on a normal push to main nothing
changes. It waits for
publish-commit-taginstead of running beside it, sothere is never more than one push in flight — the constraint that made the
one-tag-per-job split necessary in the first place.
The mechanism is the same one
publish-commit-tagalready proves: a fresh job,one login, one push. The only addition is a local
docker tag, which costs nopush call. The version path itself is exercised the first time a
v*tag ispushed.