Commit d6fe4517 authored by Sandro Mathys's avatar Sandro Mathys
Browse files

try creating a release

parent 0355b338
......@@ -30,6 +30,7 @@ stages:
- postcleanup
- package
- upload
- tag
.cleanup:
interruptible: true
......@@ -159,3 +160,17 @@ upload staging:
- helm chart pull "cr.gitlab-int.switch.ch/maps/shibboleth-sp-helm-chart/chart/shibboleth-sp:${chart_version}" > /dev/null && ( echo "FATAL - the version in Chart.yaml already exist in the repository" >&2; exit 1 )
- helm chart save chart "cr.gitlab-int.switch.ch/maps/shibboleth-sp-helm-chart/chart/shibboleth-sp"
- helm chart push "cr.gitlab-int.switch.ch/maps/shibboleth-sp-helm-chart/chart/shibboleth-sp:${chart_version}"
tag staging:
stage: tag
environment:
name: staging
only:
- staging
image: registry.gitlab.com/gitlab-org/release-cli:latest
script:
- chart_version=$(grep "^version:" chart/Chart.yaml | sed "s/^.*:\W*//")
release:
name: "Release ${chart_version}"
description: "Created by the pipeline"
tag_name: "${chart_version}"
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