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

separate package and push into separate stages, fix paths

parent 0353cf5e
......@@ -28,7 +28,8 @@ stages:
- verify
- post-cleanup
# on tag
- build
- package
- push
- release
.cleanup:
......@@ -128,7 +129,7 @@ post-cleanup:
- sed "s/^\(version:\).*$/\1 ${CI_COMMIT_TAG}/" -i "${CI_PROJECT_DIR}/Chart.yaml"
package:
stage: build
stage: package
environment:
name: release
only:
......@@ -140,10 +141,10 @@ package:
- helm package "${CI_PROJECT_DIR}"
artifacts:
paths:
- ${CI_PROJECT_DIR}/*.tgz
- ${CI_PROJECT_DIR}/shibboleth-sp-${CI_COMMIT_TAG}.tgz
upload:
stage: build
push:
stage: push
environment:
name: release
only:
......@@ -153,7 +154,7 @@ upload:
.set-helm-version
script:
- echo "${CI_REGISTRY_PASSWORD}" | helm registry login "${CI_REGISTRY_IMAGE}" -u "${CI_REGISTRY_USER}" --password-stdin
- helm push "${CI_PROJECT_DIR}" "oci://${CI_REGISTRY_IMAGE}/shibboleth-sp:${CI_COMMIT_TAG}"
- helm push "${CI_PROJECT_DIR}/shibboleth-sp-${CI_COMMIT_TAG}.tgz" "oci://${CI_REGISTRY_IMAGE}/shibboleth-sp:${CI_COMMIT_TAG}"
release:
image: registry.gitlab.com/gitlab-org/release-cli:latest
......
Markdown is supported
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