Skip to content

Commit d17fe9a

Browse files
committed
pipeline: We can actually push helm charts to GHCR! How does this work with the helm repo though?
1 parent 7d97072 commit d17fe9a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pipeline.gocd.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,13 @@ pipelines:
162162
- script: |
163163
set -e
164164
165+
export CHART_VERSION="$(echo $GO_PIPELINE_LABEL | awk -F '-' '{print $1}')"
166+
165167
helm lint helm-charts/${CHART_NAME}
166168
167-
helm package --version "$(echo $GO_PIPELINE_LABEL | awk -F '-' '{print $1}')" --app-version $GO_PIPELINE_LABEL ./helm-charts/${CHART_NAME}
169+
helm package --version ${CHART_VERSION} --app-version $GO_PIPELINE_LABEL ./helm-charts/${CHART_NAME}
170+
171+
helm push ${CHART_NAME}-${CHART_VERSION}.tgz oci://ghcr.io/snacker-tracker/charts
168172
artifacts:
169173
- build:
170174
source: snacker-tracker-ui-*.tgz

0 commit comments

Comments
 (0)