fixed variables
This commit is contained in:
parent
0f4336caf9
commit
174835f9fc
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user