Merge ~toabctl/ubuntu-docker-images/+git/utils:tag-filter into ~ubuntu-docker-images/ubuntu-docker-images/+git/utils:main
Status: | Merged |
---|---|
Merged at revision: | 7469a2d7436260cc73a159288db0d014ef1a0111 |
Proposed branch: | ~toabctl/ubuntu-docker-images/+git/utils:tag-filter |
Merge into: | ~ubuntu-docker-images/ubuntu-docker-images/+git/utils:main |
Diff against target: |
44 lines (+19/-0) 1 file modified
tag-images.sh (+19/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sergio Durigan Junior | Needs Fixing | ||
Review via email: mp+405735@code.launchpad.net |
Commit message
tag-images.sh: add --tag-filter to tag only a specific _edge tag
Currently the tag-images.sh script interates over all the given _edge
tags from the given images in the given namespace and adds the needed
tags (eg. _beta, _candidate or _stable). That's not always
wanted. Eg. when using the script in a CI pipeline where a job does
only update a specific image (eg. the "impish-21.10_edge" tagged
image), the script should only add the additional tags to that tagged
image.
With the new parameter, that's possible.
Assuming there are multiple _edge tags (eg. "impish-21.10_edge" and
"hirsute-
"impish", the script will now only add the extra tags to the image
that is tagged with "impish-21.10_edge" .
Thanks for the MP, Thomas.
I like the idea of filtering tags; this is something I've been meaning to implement for a while TBH. I understand that this only works for Ubuntu base images for now, but hey, baby steps.
I'm leaving a comment about a discrepancy between how you declare the TAG_FILTER variable and how you use it (array vs. normal variable). With that fixed, I can merge the MP.
Thanks again.