Avoiding use of alpine/helm without node
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user