File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,20 @@ build-chart:
4848 variables :
4949 PUSH_CHART : " true"
5050 - if : $CI_COMMIT_BRANCH
51+ image : registry.cern.ch/kubernetes/ops:0.4.0
5152 stage : build-chart
52- extends : .deploy_helm
53+ script : |
54+ CHART_NAME=cvmfs-csi
55+ helm package "deployments/helm/${CHART_NAME}"
56+
57+ if $PUSH_CHART; then
58+ helm registry login registry.cern.ch -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
59+ helm push ${CHART_NAME}-${CI_COMMIT_TAG}.tgz "oci://${REGISTRY_CHART_PATH}"
60+
61+ echo -n "${HARBOR_SIGNKEY}" | base64 -d > .sign.key
62+ cosign login registry.cern.ch -u ${HARBOR_USER} -p ${HARBOR_TOKEN}
63+ cosign sign --key .sign.key -y "${DEST}/${CHART_NAME}:${CI_COMMIT_TAG}"
64+ fi
5365 variables :
5466 REGISTRY_CHART_PATH : registry.cern.ch/kubernetes/charts
5567 COSIGN_PRIVATE_KEY : " $HARBOR_SIGNKEY"
You can’t perform that action at this time.
0 commit comments