Commit 0715d291 authored by Sandro Mathys's avatar Sandro Mathys
Browse files

use new pipeline images, fix chart path

parent 3ac2b5dd
......@@ -92,7 +92,7 @@ deploy:
script:
- kubectl --namespace "${NAMESPACE}" --server "${KUBE_APISERVER}" --token="${KUBE_TOKEN}" create secret tls shibboleth-sp-helm-chart-certs --cert="${CI_PROJECT_DIR}/ci/sp-cert.pem" --key="${CI_PROJECT_DIR}/ci/sp-key.pem"
# thanks to --atomic, this command won't just install the chart but also ensure it works
- helm install "${HELM_RELEASE}" "${CI_PROJECT_DIR}/chart" --values="${CI_PROJECT_DIR}/ci/values.yaml" --atomic --debug
- helm install "${HELM_RELEASE}" "${CI_PROJECT_DIR}" --values="${CI_PROJECT_DIR}/ci/values.yaml" --atomic --debug
# remove from cache
- rm -f "${CI_PROJECT_DIR}/ci/sp-key.pem"
......@@ -125,7 +125,7 @@ post-cleanup:
.set-helm-version:
before_script:
- sed "s/^\(version:\).*$/\1 ${CI_COMMIT_TAG}/" -i "${CI_PROJECT_DIR}/chart/Chart.yaml"
- sed "s/^\(version:\).*$/\1 ${CI_COMMIT_TAG}/" -i "${CI_PROJECT_DIR}/Chart.yaml"
package:
stage: build
......@@ -137,7 +137,7 @@ package:
extends:
.set-helm-version
script:
- helm package "${CI_PROJECT_DIR}/chart"
- helm package "${CI_PROJECT_DIR}"
artifacts:
paths:
- ${CI_PROJECT_DIR}/*.tgz
......@@ -153,7 +153,7 @@ upload:
.set-helm-version
script:
- echo "${CI_REGISTRY_PASSWORD}" | helm registry login "${CI_REGISTRY_IMAGE}" -u "${CI_REGISTRY_USER}" --password-stdin
- helm chart save "${CI_PROJECT_DIR}/chart" "${CI_REGISTRY_IMAGE}/shibboleth-sp"
- helm chart save "${CI_PROJECT_DIR}" "${CI_REGISTRY_IMAGE}/shibboleth-sp"
- helm chart push "${CI_REGISTRY_IMAGE}/shibboleth-sp:${CI_COMMIT_TAG}"
release:
......
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