prometheus-postgres-exporter/.gitea/workflows/release.yaml
Markus Pesch 0f7be7a834
Some checks failed
Helm / helm-unittest (pull_request) Successful in 17s
Helm / helm-lint (pull_request) Successful in 14s
Release / publish-chart (push) Failing after 14s
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
asd
2025-01-12 15:39:25 +01:00

44 lines
1.4 KiB
YAML

name: Release
on:
push:
tags:
- "**"
jobs:
publish-chart:
container:
image: docker.io/volkerraschek/helm:3.16.1
runs-on: ubuntu-latest
steps:
- name: Install tooling
run: |
apk update
apk add git npm
- uses: actions/checkout@v4
# - name: Import GPG key
# id: import_gpg
# uses: https://github.com/crazy-max/ghaction-import-gpg@v6
# with:
# gpg_private_key: ${{ secrets.GPGSIGN_KEY }}
# passphrase: ${{ secrets.GPGSIGN_PASSPHRASE }}
# fingerprint: CC64B1DB67ABBEECAB24B6455FC346329753F4B0
# Using helm gpg plugin as 'helm package --sign' has issues with gpg2: https://github.com/helm/helm/issues/2843
- name: package chart
env:
HELM_REPO_NAME: test
HELM_REPO_PASSWORD: ${{ secrets.HELM_REPO_PASSWORD }}
HELM_REPO_USERNAME: ${{ secrets.HELM_REPO_USERNAME }}
run: |
REPOSITORY_NAME=$(echo ${GITHUB_REPOSITORY} | cut -d '/' -f 2)
PACKAGE_VERSION=${GITHUB_REF#refs/tags/v}
echo $REPOSITORY_NAME
echo $PACKAGE_VERSION
helm repo add ${HELM_REPO_NAME} https://charts.cryptic.systems/${HELM_REPO_NAME}
helm dependency build
helm package --version "${PACKAGE_VERSION}" ./
helm cm-push ${REPOSITORY_NAME}-${PACKAGE_VERSION}.tgz ${HELM_REPO_NAME}