.
Some checks failed
Lint and Test Charts / lint-test (push) Successful in 7s
Lint and Test Charts / package-helm (push) Failing after 17s

This commit is contained in:
Jonas Forsberg 2024-10-18 14:41:56 +02:00
parent 3610963a9e
commit 0cf4704fd2

View File

@ -6,7 +6,7 @@ on:
tags: tags:
- '**' # Push events to every tag including hierarchical tags like v1.0/beta - '**' # Push events to every tag including hierarchical tags like v1.0/beta
jobs: jobs:
lint-test: package-helm:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -17,6 +17,11 @@ jobs:
with: with:
version: v3.14.4 version: v3.14.4
- name: Install prereq
run: |
apt update
apt install yq -y
- name: build helm package - name: build helm package
shell: bash shell: bash
env: env:
@ -25,8 +30,10 @@ jobs:
REPO_HOST: ${{ vars.REPO_HOST }} REPO_HOST: ${{ vars.REPO_HOST }}
run: | run: |
REPO_PATH=$(git rev-parse --show-toplevel) REPO_PATH=$(git rev-parse --show-toplevel)
CHART_NAME=$(yq .version Chart.yaml)
CHART_VERSION=$(yq .version Chart.yaml)
mkdir /tmp/build mkdir /tmp/build
cd /tmp/build cd /tmp/build
helm package $REPO_PATH helm package $REPO_PATH
helm registry login --username $REPO_USERNAME --password $REPO_PASSWORD $REPO_HOST helm registry login --username $REPO_USERNAME --password $REPO_PASSWORD $REPO_HOST
helm push *.tgz helm push ${CHART_NAME}-${CHART_VERSION}.tgz oci://$REPO_HOST/helm