From 6f3013627dc034551f8fdd1e4b050445d7394afd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Thu, 7 Mar 2024 13:21:39 +0100 Subject: [PATCH 1/2] ci: Release helm charts as OCI artifact (#48) * ci: Release helm charts as OCI artifact Helm supports helm charts as OCI artifact, too. This has the great benefit that a local configuration of a helm repo is not longer necessary. Ref: prometheus-community/helm-charts@17736ad/.github/workflows/release.yaml#L45C1-L61C15 * Add packages permission --------- Co-authored-by: Cristian Greco --- .github/workflows/release.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index abc6595..1730111 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,7 @@ jobs: if: github.repository == 'nerdswords/helm-charts' permissions: contents: write + packages: write # needed for ghcr access runs-on: ubuntu-latest steps: - name: Checkout @@ -34,6 +35,24 @@ jobs: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" CR_RELEASE_NAME_TEMPLATE: "yace-helm-chart-{{ .Version }}" + # see https://github.com/helm/chart-releaser/issues/183 + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Push charts to GHCR + run: | + shopt -s nullglob + for pkg in .cr-release-packages/*; do + if [ -z "${pkg:-}" ]; then + break + fi + helm push "${pkg}" "oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/charts" + done + sync-readme: needs: [release] permissions: From 6f83ddb65306280a76b09750121b97ea03bc4947 Mon Sep 17 00:00:00 2001 From: Cristian Greco Date: Thu, 7 Mar 2024 13:28:48 +0100 Subject: [PATCH 2/2] Release 0.29.0 (#51) --- charts/yet-another-cloudwatch-exporter/Chart.yaml | 4 ++-- charts/yet-another-cloudwatch-exporter/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/yet-another-cloudwatch-exporter/Chart.yaml b/charts/yet-another-cloudwatch-exporter/Chart.yaml index 52d18ae..532ed40 100644 --- a/charts/yet-another-cloudwatch-exporter/Chart.yaml +++ b/charts/yet-another-cloudwatch-exporter/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: yet-another-cloudwatch-exporter description: Yace - Yet Another CloudWatch Exporter type: application -version: 0.28.0 -appVersion: "v0.57.0" +version: 0.29.0 +appVersion: "v0.57.1" home: https://github.com/nerdswords/helm-charts sources: - https://github.com/nerdswords/yet-another-cloudwatch-exporter diff --git a/charts/yet-another-cloudwatch-exporter/README.md b/charts/yet-another-cloudwatch-exporter/README.md index 95b1694..7ac0b65 100644 --- a/charts/yet-another-cloudwatch-exporter/README.md +++ b/charts/yet-another-cloudwatch-exporter/README.md @@ -1,6 +1,6 @@ # yet-another-cloudwatch-exporter -![Version: 0.28.0](https://img.shields.io/badge/Version-0.28.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.57.0](https://img.shields.io/badge/AppVersion-v0.57.0-informational?style=flat-square) +![Version: 0.29.0](https://img.shields.io/badge/Version-0.29.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.57.1](https://img.shields.io/badge/AppVersion-v0.57.1-informational?style=flat-square) Yace - Yet Another CloudWatch Exporter