From b37d1a76412858acdb65e4a2d54d313f3f67f2d6 Mon Sep 17 00:00:00 2001 From: Conan Scott Date: Fri, 21 Nov 2025 11:12:51 +0800 Subject: [PATCH] Avoiding use of alpine/helm without node --- .gitea/workflows/publish-helm.yaml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/publish-helm.yaml b/.gitea/workflows/publish-helm.yaml index 7d31b8e..2625694 100644 --- a/.gitea/workflows/publish-helm.yaml +++ b/.gitea/workflows/publish-helm.yaml @@ -2,19 +2,24 @@ name: Helm Publish on: push: - branches: - - main - workflow_dispatch: + tags: + - "v*" jobs: publish: - runs-on: ubuntu-latest - container: alpine/helm:latest # any image with helm is fine + runs-on: docker # or whatever your Gitea runner labels are steps: - name: Checkout uses: actions/checkout@v4 + - name: Install Helm + run: | + set -euo pipefail + curl -sSL https://get.helm.sh/helm-v3.15.0-linux-amd64.tar.gz -o /tmp/helm.tgz + tar xzf /tmp/helm.tgz -C /tmp + install /tmp/linux-amd64/helm /usr/local/bin/helm + - name: Install helm cm-push plugin run: | set -euo pipefail @@ -24,9 +29,7 @@ jobs: run: | set -euo pipefail TAG="$(git describe --tags --exact-match)" - # TAG is like v0.1.3 -> VERSION=0.1.3 VERSION="${TAG#v}" - echo "TAG=${TAG}" echo "VERSION=${VERSION}" >> "$GITHUB_ENV" - name: Verify Chart.yaml version matches tag