class Gitlab::QA::Release

def tag

Tag scheme for gitlab-{ce,ee} images is like 11.1.0-rc12.ee.0
def tag
  @tag ||=
    if canonical?
      release.match(CANONICAL_REGEX)[:tag] || DEFAULT_CANONICAL_TAG
    else
      release.match(CUSTOM_GITLAB_IMAGE_REGEX)&.[](:tag) || DEFAULT_TAG
    end
end