From d989b4c1ddece82f838999b257e5f1718b7cca04 Mon Sep 17 00:00:00 2001 From: David Collom Date: Fri, 17 Nov 2023 12:23:33 +0000 Subject: [PATCH] Release v0.3.3 (#137) Co-authored-by: github-actions[bot] --- .github/workflows/helm-test.yaml | 1 + .github/workflows/release.yaml | 16 +++++++++++++++- Makefile | 2 +- deploy/charts/version-checker/Chart.yaml | 4 ++-- deploy/yaml/deploy.yaml | 2 +- 5 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/helm-test.yaml b/.github/workflows/helm-test.yaml index aa080c02..3b9750a2 100644 --- a/.github/workflows/helm-test.yaml +++ b/.github/workflows/helm-test.yaml @@ -48,6 +48,7 @@ jobs: with: version: 1.11.0 - name: Update Helm Docs + if: steps.filter.outputs.values == 'true' run: | set -ex cd deploy/charts/version-checker diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 38057d7c..d41b795a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -41,7 +41,7 @@ jobs: replace: "${{steps.release_number.outputs.substring}}" include: "deploy/yaml/deploy.yaml" regex: true - - name: Fid and Replace Makefile versions + - name: Find and Replace Makefile versions uses: jacobtomlinson/gha-find-replace@v3 with: find: 'v(\d+)\.(\d+)\.(\d+)(-rc(\d)+)?' @@ -49,13 +49,27 @@ jobs: include: "Makefile" regex: true + - name: Detect any Local Changes + uses: dorny/paths-filter@v2 + id: filter + with: + base: HEAD + filters: | + versions: + - 'Makefile' + - 'deploy/yaml/deploy.yaml' + - 'deploy/charts/version-checker/Chart.yaml' + + - name: Commit files + if: steps.filter.outputs.versions == 'true' run: | git config --local user.email "github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" git status git commit -a -m "Bump versions to ${{steps.release_number.outputs.substring}} " - name: Push changes + if: steps.filter.outputs.versions == 'true' uses: ad-m/github-push-action@v0.6.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/Makefile b/Makefile index 97a40d14..27c8794c 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ verify: test build ## tests and builds version-checker image: ## build docker image GOARCH=$(ARCH) GOOS=linux CGO_ENABLED=0 go build -o ./bin/version-checker-linux ./cmd/. - docker build -t quay.io/jetstack/version-checker:v0.3.2 . + docker build -t quay.io/jetstack/version-checker:v0.3.3 . clean: ## clean up created files rm -rf \ diff --git a/deploy/charts/version-checker/Chart.yaml b/deploy/charts/version-checker/Chart.yaml index 093d9cfe..56a1afce 100644 --- a/deploy/charts/version-checker/Chart.yaml +++ b/deploy/charts/version-checker/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 -appVersion: "v0.3.2" -version: "v0.3.2" +appVersion: "v0.3.3" +version: "v0.3.3" description: A Helm chart for version-checker home: https://github.com/jetstack/version-checker name: version-checker diff --git a/deploy/yaml/deploy.yaml b/deploy/yaml/deploy.yaml index 808aa611..1254410e 100644 --- a/deploy/yaml/deploy.yaml +++ b/deploy/yaml/deploy.yaml @@ -49,7 +49,7 @@ spec: spec: serviceAccountName: version-checker containers: - - image: quay.io/jetstack/version-checker:v0.3.2 + - image: quay.io/jetstack/version-checker:v0.3.3 imagePullPolicy: Always ports: - containerPort: 8080