From 0c94d6b6f7647b63cd354b19fd38c423f28bc1fb Mon Sep 17 00:00:00 2001 From: Denis Arsh Date: Tue, 20 Aug 2024 15:04:56 +0300 Subject: [PATCH] fix metastorage provisioner version --- .github/workflows/branch-naming-convention.yml | 11 ++++++++++- charts/metastorageprovisioner/templates/dep.yml | 6 +----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/branch-naming-convention.yml b/.github/workflows/branch-naming-convention.yml index 28228a39..46d1b4ab 100644 --- a/.github/workflows/branch-naming-convention.yml +++ b/.github/workflows/branch-naming-convention.yml @@ -12,4 +12,13 @@ jobs: allowed_prefixes: 'DEV-,weekly-rc-,DEVOPS-,quality-' # All branches should start with the given prefix ignore: master,main,saas # Ignore exactly matching branch names from convention min_length: 5 # Min length of the branch name - max_length: 300 # Max length of the branch name \ No newline at end of file + max_length: 300 # Max length of the branch name + - name: Package and release helm + if: ${{ steps.tag_bump.outputs.bumped == 'true' && steps.tag_bump.outputs.prerelease == 'false' }} + env: + CHARTMUSEUM_USER: ${{ secrets.CHARTMUSEUM_USER }} + CHARTMUSEUM_PASSWORD: ${{ secrets.CHARTMUSEUM_PASSWORD }} + run: | + helm plugin install https://github.com/chartmuseum/helm-push.git + helm repo add cnvrg https://charts.slim.cnvrg.io/cnvrg + helm cm-push charts/metastorageprovisioner -f cnvrg -u=${CHARTMUSEUM_USER} -p=${CHARTMUSEUM_PASSWORD} --context-path /cnvrg \ No newline at end of file diff --git a/charts/metastorageprovisioner/templates/dep.yml b/charts/metastorageprovisioner/templates/dep.yml index 8465b443..0bb2df25 100644 --- a/charts/metastorageprovisioner/templates/dep.yml +++ b/charts/metastorageprovisioner/templates/dep.yml @@ -21,11 +21,7 @@ spec: containers: - name: metastorageprovisioner imagePullPolicy: Always - {{- if .Values.version }} - image: "{{.Values.imageHub}}/cnvrg-operator:{{.Values.version}}" - {{- else }} - image: "{{.Values.imageHub}}/cnvrg-operator:{{.Chart.Version}}" - {{- end }} + image: "{{.Values.imageHub}}/cnvrg-operator:5.1.20" command: - /opt/app-root/cnvrg-metastorageprovisioner - start