CI: Use of COMMIT_REF_NAME results in illegal release names
Summary
Our CI builds RELEASE_NAME
from ${REVIEW_REF_PREFIX}${CI_COMMIT_REF_NAME}
. Because we use CI_COMMIT_REF_NAME
(vs CI_COMMIT_REF_SLUG
), deployments for branches that have /
in the name (or other non-compliant characters) will result in failures such as this:
error: error when deleting "/tmp/kubectl_replace_582744746/resource.stdin": invalid resource name "rvw-deps/09ce048-e5b8158-gitlab-initial-root-password": [may not contain '/']
Steps to reproduce
See any recent deps
pipelines, or MRs which needed to be duplicated to a new branch name because a /
.