Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion .github/workflows/helm-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ env:
jobs:
helm-jobs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -105,13 +107,38 @@ jobs:
- name: Set the git sha annotations in the helm chart
run: yq -i ".annotations.git/commit-sha = \"${GITHUB_SHA}\"" ./helm/Chart.yaml

- name: Install chart-releaser
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: helm/chart-releaser-action@main
with:
install_only: true

- name: Import PGP signing key
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: |
echo "${{ secrets.HELM_SIGNING_KEY }}" | base64 -d | gpg --import
gpg --export-secret-keys "${{ vars.HELM_SIGNING_KEY_ID }}" > ~/.gnupg/secring.gpg

- name: Package and sign charts
id: package
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: |
cr package helm \
--package-path .cr-release-packages \
--sign \
--key "${{ vars.HELM_SIGNING_KEY_ID }}" \
--keyring ~/.gnupg/secring.gpg
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: Release charts
if: ${{ github.event.repository.default_branch && github.event_name == 'push' }}
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && steps.package.outcome == 'success'
uses: helm/chart-releaser-action@main
with:
charts_dir: .
mark_as_latest: false
packages_with_index: true
skip_packaging: true
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_RELEASE_NAME_TEMPLATE: "chart-{{ .Name }}-{{ .Version }}"
6 changes: 5 additions & 1 deletion helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ apiVersion: v2
name: sql-exporter
description: Database-agnostic SQL exporter for Prometheus
type: application
version: 0.17.2
version: 0.17.3
appVersion: 0.22.1
annotations:
artifacthub.io/signKey: |
fingerprint: 9F218BE64F503809BB829626B9024AEA76E9BCB3
url: https://burningalchemist.github.io/sql_exporter/pubkey.gpg
keywords:
- exporter
- servicemonitor
Expand Down
Loading