Skip to content

[CI] Ensure hyphens are trimmed from NAME_OVERRIDE

Mitchell Nielsen requested to merge ci-trim-hyphen-in-suffix into master

Ensures that hyphens are trimmed from NAME_OVERRIDE. This prevents problems when interpolating the NAME_OVERRIDE into other strings such as the deployment name, which would lead to double hyphens and cause a failure.

This fix was mirrored from Charts CI: https://gitlab.com/gitlab-org/charts/gitlab/blob/bb0fcf496aad72f832b9caf5153c2a0d4e6cd428/scripts/ci/autodevops.sh#L15-16

Fixes !463 (closed).

Edited by Mitchell Nielsen

Merge request reports