Skip to content
Snippets Groups Projects
Commit 40510831 authored by Nacho Barrientos's avatar Nacho Barrientos
Browse files

Use alpine/helm to push the chart to registry.cern.ch

parent 8a4c3343
No related branches found
No related tags found
1 merge request!58Do not check if tag exists + use alpine/helm:3
......@@ -65,16 +65,11 @@ unittest:
helm_deploy:
stage: deploy
image: registry.cern.ch/docker.io/alpine/helm:3
rules:
- if: '$CI_COMMIT_TAG'
script: |
dnf install -y diffutils wget tar
wget https://get.helm.sh/helm-v3.15.3-linux-386.tar.gz
tar -zxvf helm-v3.15.3-linux-386.tar.gz
mv linux-386/helm /usr/local/bin/helm
rm helm-v3.15.3-linux-386.tar.gz
rm -rf linux-386
sed -i "s/^version:.*/version: ${CI_COMMIT_TAG}/" Chart.yaml
helm package .
echo $REGISTRY_PASSWORD | helm registry login https://registry.cern.ch/v2/ -u $REGISTRY_USER --password-stdin
echo ${REGISTRY_PASSWORD} | helm registry login https://registry.cern.ch/v2/ -u $REGISTRY_USER --password-stdin
helm push cern-it-monitoring-kubernetes-$CI_COMMIT_TAG.tgz oci://registry.cern.ch/monit
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment