Commit 13d1e9a0 authored by Sandro Mathys's avatar Sandro Mathys
Browse files

temporarily overwrite Chart version before packaging/saving it

parent 2c87a042
......@@ -148,6 +148,7 @@ package:
- main
interruptible: true
script:
- sed "s/^\(version:\).*$/\1 ${CI_COMMIT_TAG}/" -i "${CI_PROJECT_DIR}/chart/Chart.yaml"
- helm package "${CI_PROJECT_DIR}/chart"
artifacts:
paths:
......@@ -162,6 +163,7 @@ upload:
- $CI_COMMIT_TAG
interruptible: true
script:
- sed "s/^\(version:\).*$/\1 ${CI_COMMIT_TAG}/" -i "${CI_PROJECT_DIR}/chart/Chart.yaml"
- echo "${SHIBBOLETH_SP_HELM_CHART_REGISTRY_TOKEN}" | helm registry login "${CI_REGISTRY_IMAGE}" -u "gitlab-ci-shibboleth-sp-helm-chart" --password-stdin
- helm chart save "${CI_PROJECT_DIR}/chart" "${CI_REGISTRY_IMAGE}"
- helm chart push "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment