Created
August 29, 2022 08:40
-
-
Save rjpkuyper/7729ba309935b9fa94b7eb6162fb2d10 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: | |
image: | |
name: alpine/helm:3.9.4 | |
entrypoint: [""] | |
stages: | |
- publish | |
- deploy | |
publish-chart: | |
stage: publish | |
variables: | |
CHART_PATH: ./charts/store-chart | |
CHART_REPO: charts | |
script: | |
- helm registry login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY} | |
- helm repo add --username ${CI_REGISTRY_USER} --password ${CI_REGISTRY_PASSWORD} ${CHART_REPO} https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/helm/stable | |
- helm package $CHART_PATH | |
- helm push store-chart-1.0.0.tgz oci://${CI_REGISTRY_IMAGE}/${CHART_REPO} | |
consume-chart: | |
stage: deploy | |
script: | |
- echo 'Write result to stdout:::' | |
- cd charts/consume-chart && helm dependency build && helm template --debug . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment