fixed variables
All checks were successful
Lint and Test Charts / lint-test (push) Successful in 7s
Package and publish helm chart / package-helm (push) Successful in 13s

This commit is contained in:
Jonas Forsberg 2024-10-18 15:23:09 +02:00
parent 0f4336caf9
commit 174835f9fc

View File

@ -1,4 +1,4 @@
name: Lint and Test Charts
name: Package and publish helm chart
on:
push:
@ -33,16 +33,14 @@ jobs:
shell: bash
env:
REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }}
REPO_USERNAME: ${{ vars.REPO_USERNAME }}
REPO_HOST: ${{ vars.REPO_HOST }}
REPO_USERNAME: ${{ secrets.REPO_USERNAME }}
REPO_HOST: ${{ secrets.REPO_HOST }}
CHART_NAME: ${{ steps.chart_username.outputs.result }}
CHART_VERSION: ${{ steps.chart_version.outputs.result }}
run: |
REPO_PATH=$(git rev-parse --show-toplevel)
CHART_NAME=$(yq .version Chart.yaml)
CHART_VERSION=$(yq .version Chart.yaml)
mkdir /tmp/build
cd /tmp/build
helm package $REPO_PATH
helm registry login --username $REPO_USERNAME --password $REPO_PASSWORD $REPO_HOST
helm push ${CHART_NAME}-${CHART_VERSION}.tgz oci://$REPO_HOST/helm
echo "helm registry login --username $REPO_USERNAME --password $REPO_PASSWORD $REPO_HOST"
echo "helm push ${CHART_NAME}-${CHART_VERSION}.tgz oci://$REPO_HOST/helm"