From d1716166802a1c1a89e804fc134c73e1142c4b73 Mon Sep 17 00:00:00 2001 From: Joshua Hoblitt Date: Mon, 6 May 2024 12:14:58 -0700 Subject: [PATCH 1/2] bump chart version to 0.2.0 --- charts/gnocpush/Chart.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/gnocpush/Chart.yaml b/charts/gnocpush/Chart.yaml index 2b8d401..88a78e9 100644 --- a/charts/gnocpush/Chart.yaml +++ b/charts/gnocpush/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: gnocpush description: Push Prometheus Alertmanager webhook payloads to Global NOC type: application -version: 0.1.0 -appVersion: 0.1.0 +version: 0.2.0 +appVersion: 0.2.0 From db9b317fcfebc5b91e09ef663e83dbf31e673cb9 Mon Sep 17 00:00:00 2001 From: Joshua Hoblitt Date: Mon, 6 May 2024 12:17:17 -0700 Subject: [PATCH 2/2] restrict chart release to when being tagged --- .github/workflows/ci.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 756b715..2bf34f7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,8 +10,8 @@ name: Build and Publish - "v*.*.*" pull_request: branches: - - "main" - - 'master' + - main + - master env: REGISTRY: ghcr.io @@ -125,8 +125,7 @@ jobs: chart-release: - # only run when merged to main - if: github.ref == 'refs/heads/main' + if: startsWith(github.ref, 'refs/tags/') name: Helm Chart Release needs: - oci_image