Fix duplicate -ubi8 on image tags
What does this MR do?
Under certain conditions when the UBI pipeline runs it will append a second -ubi8
label to the tag of all the images created. In other words the pipeline will tag each image as fix-double-ubi8-ubi8
instead of fix-double-ubi8
. This is partly due to the fact that the pipeline can be triggered with the UBI_PIPELINE
CI variable which can be used when the branch name does not end in -ubi8
(which is what triggers the UBI pipeline).
This change will only add -ubi8
to the tag if the tag does not already end in -ubi8
.
Blocks: !1160 (closed)
Checklist
See Definition of done.
For anything in this list which will not be completed, please provide a reason in the MR discussion.
Required
-
Merge Request Title and Description are up to date, accurate, and descriptive -
MR targeting the appropriate branch -
MR has a green pipeline on GitLab.com -
Pipeline is green on dev.gitlab.org if the change is touching anything besides documentation or internal cookbooks -
trigger-package has a green pipeline running against latest commit
Edited by Jason Plum