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