From 4e2af8bbfb788026606b8b4059369b453cdc2946 Mon Sep 17 00:00:00 2001 From: Rose Yemelyanova Date: Wed, 14 Sep 2022 13:29:56 +0100 Subject: [PATCH] reverted changes so helm only pushes on git tag --- .github/workflows/helm.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/helm.yml b/.github/workflows/helm.yml index e960ace..6342bdd 100644 --- a/.github/workflows/helm.yml +++ b/.github/workflows/helm.yml @@ -1,11 +1,9 @@ name: Helm CI -on: [push] - -# on: -# push: -# tags: -# - '*' +on: + push: + tags: + - '*' env: GCR_IMAGE: ghcr.io/diamondlightsource/diffcalc-api @@ -43,9 +41,5 @@ jobs: - name: package chart and push it run: | helm dependencies update helm/diffcalc-api - helm package helm/diffcalc-api --version 0.1.0 -d /tmp/ - helm push /tmp/diffcalc-api-0.1.0.tgz oci://ghcr.io/diamondlightsource/charts - - -# helm package helm/diffcalc-api --version ${GITHUB_REF##*/} -d /tmp/ -# helm push /tmp/diffcalc-api-${GITHUB_REF##*/}.tgz oci://ghcr.io/diamondlightsource/charts \ No newline at end of file + helm package helm/diffcalc-api --version ${GITHUB_REF##*/} -d /tmp/ + helm push /tmp/diffcalc-api-${GITHUB_REF##*/}.tgz oci://ghcr.io/diamondlightsource/charts \ No newline at end of file