Skip to content

Drop v prefix from QA image tags

Balasankar 'Balu' C requested to merge fix-qa-image-on-tag-pipelines into master

What does this MR do and why?

For our docker images, we have been dropping the v prefix from version. As seen from https://hub.docker.com/r/gitlab/gitlab-ee-qa/tags. When we implemented !98308 (merged), we missed this.

Testing

# On tag pipelines
$ export CI_COMMIT_TAG=v15.5.3-ee
$ IMAGE_TAG=${CI_COMMIT_TAG#v}
$ IMAGE_TAG=${IMAGE_TAG:-$CI_COMMIT_REF_SLUG}
$ echo ${IMAGE_TAG}
15.5.3-ee

# On branch pipelines
$ unset CI_COMMIT_TAG IMAGE_TAG
$ export CI_COMMIT_REF_SLUG="fix-qa-image-on-tag-pipelines"
$ IMAGE_TAG=${CI_COMMIT_TAG#v}
$ IMAGE_TAG=${IMAGE_TAG:-$CI_COMMIT_REF_SLUG}
$ echo ${IMAGE_TAG}
fix-qa-image-on-tag-pipelines

Related to #375330 (closed) and &8661

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports