Avoiding use of alpine/helm without node
This commit is contained in:
@@ -2,19 +2,24 @@ name: Helm Publish
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- main
|
- "v*"
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: docker # or whatever your Gitea runner labels are
|
||||||
container: alpine/helm:latest # any image with helm is fine
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Install helm cm-push plugin
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
@@ -24,9 +29,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
TAG="$(git describe --tags --exact-match)"
|
TAG="$(git describe --tags --exact-match)"
|
||||||
# TAG is like v0.1.3 -> VERSION=0.1.3
|
|
||||||
VERSION="${TAG#v}"
|
VERSION="${TAG#v}"
|
||||||
echo "TAG=${TAG}"
|
|
||||||
echo "VERSION=${VERSION}" >> "$GITHUB_ENV"
|
echo "VERSION=${VERSION}" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
- name: Verify Chart.yaml version matches tag
|
- name: Verify Chart.yaml version matches tag
|
||||||
|
|||||||
Reference in New Issue
Block a user