Skip to content

Commit ac256dd

Browse files
author
jack munday
committed
strip version prefix from chart push
1 parent c37bdfb commit ac256dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ build-chart:
5656
5757
if $PUSH_CHART; then
5858
helm registry login registry.cern.ch -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
59-
helm push ${CHART_NAME}-${CI_COMMIT_TAG}.tgz "oci://${REGISTRY_CHART_PATH}"
59+
CHART_VERSION=${CI_COMMIT_TAG#v} # strip version prefix from chart.
60+
helm push ${CHART_NAME}-${CHART_VERSION}.tgz "oci://${REGISTRY_CHART_PATH}"
6061
6162
echo -n "${HARBOR_SIGNKEY}" | base64 -d > .sign.key
6263
cosign login registry.cern.ch -u ${HARBOR_USER} -p ${HARBOR_TOKEN}

0 commit comments

Comments
 (0)