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:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -33,16 +33,14 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }}
|
REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }}
|
||||||
REPO_USERNAME: ${{ vars.REPO_USERNAME }}
|
REPO_USERNAME: ${{ secrets.REPO_USERNAME }}
|
||||||
REPO_HOST: ${{ vars.REPO_HOST }}
|
REPO_HOST: ${{ secrets.REPO_HOST }}
|
||||||
CHART_NAME: ${{ steps.chart_username.outputs.result }}
|
CHART_NAME: ${{ steps.chart_username.outputs.result }}
|
||||||
CHART_VERSION: ${{ steps.chart_version.outputs.result }}
|
CHART_VERSION: ${{ steps.chart_version.outputs.result }}
|
||||||
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
|
echo "helm registry login --username $REPO_USERNAME --password $REPO_PASSWORD $REPO_HOST"
|
||||||
helm push ${CHART_NAME}-${CHART_VERSION}.tgz oci://$REPO_HOST/helm
|
echo "helm push ${CHART_NAME}-${CHART_VERSION}.tgz oci://$REPO_HOST/helm"
|
||||||
|
Loading…
Reference in New Issue
Block a user