This CI environment is using a busybox `sh` so doesn't support all the
advanced features of bash. Reimplement IMAGE_TAG processing so it
functions as intended.
Signed-off-by: Chris Evich <chris_gitlab@icuc.me>
It's often hard to debug/maintain/improve a job when you can't observe
any of the (many!) auto-generated CI env. vars. Print them all out on
every job.
Signed-off-by: Chris Evich <chris_gitlab@icuc.me>
For whatever reason, line-breaks must be used regardless of
string-block marker `|` or `>-`. Fix this.
Also, support a fork/pull/MR model allowing contributors to run
pipelines on their fork w/ push to their registry. In this case, images
should be tagged by MR number to be helpful.
Signed-off-by: Chris Evich <chris_gitlab@icuc.me>
Prevent any possiblilty of confusion for tags (prefixed with a `v`) vs MR tags
(previously no prefix).
Signed-off-by: Chris Evich <chris_gitlab@icuc.me>
For tag-pipelines, tag image with the repo. tag
For MR's, tag the image with the MR number
For Branches, use the branch name except for `main` use `latest`.
Signed-off-by: Chris Evich <cevich@redhat.com>