From bccfbb30371963281fb6d205c35430d32cb57652 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 11 Jan 2025 20:23:30 +0100 Subject: [PATCH] wip --- .gitea/workflows/release.yaml | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .gitea/workflows/release.yaml diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml new file mode 100644 index 0000000..379e8c6 --- /dev/null +++ b/.gitea/workflows/release.yaml @@ -0,0 +1,48 @@ +name: Release + +on: + push: + tags: + - "*" + +env: + # renovate: datasource=docker depName=alpine/helm + HELM_VERSION: "3.16.4" + +jobs: + generate-chart-publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: install tools + run: | + apt update --yes + apt install --yes curl ca-certificates curl gnupg + # helm + curl --location --output helm-v${HELM_VERSION}-linux-amd64.tar.gz https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz + tar --extract --gzip --file helm-v${HELM_VERSION}-linux-amd64.tar.gz + mv linux-amd64/helm /usr/local/bin/ + rm -rf linux-amd64 helm-v${HELM_VERSION}-linux-amd64.tar.gz + helm version + + # - 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 + run: | + helm dependency build + helm package --version "${GITHUB_REF#refs/tags/v}" ./ + # mkdir gitea + # mv gitea*.tgz gitea/ + # curl -s -L -o gitea/index.yaml https://dl.gitea.com/charts/index.yaml + # helm repo index gitea/ --url https://dl.gitea.com/charts --merge gitea/index.yaml + # # push to dockerhub + # echo ${{ secrets.DOCKER_CHARTS_PASSWORD }} | helm registry login -u ${{ secrets.DOCKER_CHARTS_USERNAME }} registry-1.docker.io --password-stdin + # helm push gitea/gitea-${GITHUB_REF#refs/tags/v}.tgz oci://registry-1.docker.io/giteacharts + # helm registry logout registry-1.docker.io