From 79959a5e4340b510226034cb2bc2d4e94ca3fd06 Mon Sep 17 00:00:00 2001 From: Georg Schreglmann Date: Thu, 23 Nov 2023 14:03:18 +0100 Subject: [PATCH] Use appVersion from chart.yaml for tagging the built image --- .github/workflows/build-and-publish.yml | 2 +- charts/swr-cache-proxy/values.yaml | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 9927280..a851a2c 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest env: IMAGE_NAME: "vividplanet/swr-cache-proxy" - TAGS: "v1" + TAGS: $(yq e '.appVersion' charts/swr-cache-proxy/Chart.yaml) steps: - run: echo "${{ github.actor }}" diff --git a/charts/swr-cache-proxy/values.yaml b/charts/swr-cache-proxy/values.yaml index d8e1577..c11088b 100644 --- a/charts/swr-cache-proxy/values.yaml +++ b/charts/swr-cache-proxy/values.yaml @@ -5,8 +5,6 @@ replicaCount: 2 image: repository: vividplanet/swr-cache-proxy pullPolicy: Always - # Overrides the image tag whose default is the chart appVersion. - tag: "v1" # TODO use appVersion imagePullSecrets: [] nameOverride: ""