Repository navigation
ci: tag PR builds with the branch name again - #251
Merged
Merged
Conversation
Co-authored-by: Sam Calder-Mason <samcaldermason@gmail.com>
There was a problem hiding this comment.
Restores branch-name derived docker tags for labelled PR builds, falling back to pr-<number> for invalid or reserved names, and moves the guard ahead of the invalid-branch skip. The guard matches the tags the master/release workflows actually publish, the regex excludes every character that could break the additional_tags JSON/shell interpolation downstream, and PR-number tags remain reserved. I found nothing wrong with it.
Reviewed 1 changed file(s) @ 7f8751e3 — no blocking issues found.
"It's not a bug, it's an undocumented feature." — anonymous
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Labelled PR builds are tagged with the branch name again (
/becomes-), as before the move to GHCR, instead ofpr-<number>. A branch name that is not a valid tag, or would take a reserved one (master,main,latest,pr…, or a release-likev1…/1…, with or without a-suffix), falls back topr-<number>.Checked by running the changed step with branch names such as
pk910/blob-v2→pk910-blob-v2,glamsterdam-devnet-7→ same, andmaster,main-fix,latest,pr-99,v2-fix,1.2.3,feat+x, a 120-char name →pr-<number>. Manual dispatch tags are unchanged. actionlint: no new findings.