From 6f91b09c0c8723be1c0058e8f2f2719f392b1b8e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 27 Aug 2024 19:47:05 +0100 Subject: [PATCH] Release v0.8.1 (#258) Co-authored-by: github-actions[bot] Co-authored-by: David Collom --- .github/workflows/helm-docs.yaml | 4 ++- .github/workflows/release.yaml | 32 ++++++++++++++++++++++-- Makefile | 2 +- deploy/charts/version-checker/Chart.yaml | 4 +-- deploy/charts/version-checker/README.md | 6 ++--- deploy/yaml/deploy.yaml | 2 +- 6 files changed, 40 insertions(+), 10 deletions(-) diff --git a/.github/workflows/helm-docs.yaml b/.github/workflows/helm-docs.yaml index dad06356..e903b135 100644 --- a/.github/workflows/helm-docs.yaml +++ b/.github/workflows/helm-docs.yaml @@ -1,5 +1,7 @@ name: Generate Helm Docs on: + # Allow other workflows to trigger + workflow_call: push: paths: - '!*.md' @@ -64,4 +66,4 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} branch: ${{ github.head_ref }} - repository: ${{ github.event.pull_request.head.repo.full_name }} \ No newline at end of file + repository: ${{ github.event.pull_request.head.repo.full_name }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 73626298..1f0284f2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -5,7 +5,7 @@ on: branches: - "release-v*" tags: - - "*" + - "v*" concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -27,6 +27,7 @@ jobs: with: value: ${{github.ref_name}} index_of_str: "release-" + - name: Find and Replace Helm Chart Version uses: jacobtomlinson/gha-find-replace@v3 with: @@ -34,6 +35,7 @@ jobs: replace: "${{steps.release_number.outputs.substring}}" include: "deploy/charts/version-checker/Chart.yaml" regex: true + - name: Find and Replace Kubernetes Manifests uses: jacobtomlinson/gha-find-replace@v3 with: @@ -41,6 +43,7 @@ jobs: replace: "${{steps.release_number.outputs.substring}}" include: "deploy/yaml/deploy.yaml" regex: true + - name: Find and Replace Makefile versions uses: jacobtomlinson/gha-find-replace@v3 with: @@ -48,6 +51,18 @@ jobs: replace: "${{steps.release_number.outputs.substring}}" include: "Makefile" regex: true + + + - name: Install Helm Docs + uses: envoy/install-helm-docs@v1.0.0 + with: + version: 1.11.0 + - name: Update Helm Docs + run: | + set -ex + cd deploy/charts/version-checker + helm-docs + - name: Detect any Local Changes uses: dorny/paths-filter@v3 id: filter @@ -58,6 +73,8 @@ jobs: - 'Makefile' - 'deploy/yaml/deploy.yaml' - 'deploy/charts/version-checker/Chart.yaml' + - 'deploy/charts/version-checker/README.md' + - name: Commit files if: steps.filter.outputs.versions == 'true' run: | @@ -65,19 +82,30 @@ jobs: 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.8.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} branch: ${{ github.ref_name }} + + - name: Build Changelog + id: github_release + uses: mikepenz/release-changelog-builder-action@v5 + + - name: Create Release PR uses: devops-infra/action-pull-request@v0.5.5 with: github_token: ${{ secrets.GITHUB_TOKEN }} target_branch: main title: "Release ${{steps.release_number.outputs.substring}}" - body: "**Automated Release Pull Request**" + body: |- + "**Automated Release Pull Request** + + ## Change log: + ${{steps.github_release.outputs.changelog}} draft: false get_diff: false allow_no_diff: false diff --git a/Makefile b/Makefile index 1af196f0..4844e404 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.8.0 . + docker build -t quay.io/jetstack/version-checker:v0.8.1 . clean: ## clean up created files rm -rf \ diff --git a/deploy/charts/version-checker/Chart.yaml b/deploy/charts/version-checker/Chart.yaml index 28deb3c6..988fec63 100644 --- a/deploy/charts/version-checker/Chart.yaml +++ b/deploy/charts/version-checker/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 -appVersion: "v0.8.0" -version: "v0.8.0" +appVersion: "v0.8.1" +version: "v0.8.1" description: A Helm chart for version-checker home: https://github.com/jetstack/version-checker name: version-checker diff --git a/deploy/charts/version-checker/README.md b/deploy/charts/version-checker/README.md index a8742e81..53a64161 100644 --- a/deploy/charts/version-checker/README.md +++ b/deploy/charts/version-checker/README.md @@ -1,6 +1,6 @@ # version-checker -![Version: v0.7.0](https://img.shields.io/badge/Version-v0.7.0-informational?style=flat-square) ![AppVersion: v0.7.0](https://img.shields.io/badge/AppVersion-v0.7.0-informational?style=flat-square) +![Version: v0.8.1](https://img.shields.io/badge/Version-v0.8.1-informational?style=flat-square) ![AppVersion: v0.8.1](https://img.shields.io/badge/AppVersion-v0.8.1-informational?style=flat-square) A Helm chart for version-checker @@ -55,7 +55,7 @@ A Helm chart for version-checker | readinessProbe.periodSeconds | int | `3` | How often (in seconds) to perform the readinessProbe. | | replicaCount | int | `1` | Replica Count for version-checker | | resources | object | `{}` | Setup version-checkers resource requests/limits | -| securityContext | object | `{}` | Set container-level security context | +| securityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":65534,"seccompProfile":{"type":"RuntimeDefault"}}` | Set container-level security context | | selfhosted | []{name: "", host: "", username:"", password:"", token:""}] | `[]` | Setup a number of SelfHosted Repositories and their credentials | | service.annotations | object | `{}` | Additional annotations to add to the service | | service.labels | object | `{}` | Additional labels to add to the service | @@ -69,4 +69,4 @@ A Helm chart for version-checker | versionChecker.testAllContainers | bool | `true` | Enable/Disable the requirement for an enable.version-checker.io annotation on pods. | ---------------------------------------------- -Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2) +Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0) diff --git a/deploy/yaml/deploy.yaml b/deploy/yaml/deploy.yaml index 628011d3..f5d72838 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.8.0 + - image: quay.io/jetstack/version-checker:v0.8.1 imagePullPolicy: Always ports: - containerPort: 8080