.
This commit is contained in:
parent
3610963a9e
commit
0cf4704fd2
@ -6,7 +6,7 @@ on:
|
||||
tags:
|
||||
- '**' # Push events to every tag including hierarchical tags like v1.0/beta
|
||||
jobs:
|
||||
lint-test:
|
||||
package-helm:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@ -17,6 +17,11 @@ jobs:
|
||||
with:
|
||||
version: v3.14.4
|
||||
|
||||
- name: Install prereq
|
||||
run: |
|
||||
apt update
|
||||
apt install yq -y
|
||||
|
||||
- name: build helm package
|
||||
shell: bash
|
||||
env:
|
||||
@ -25,8 +30,10 @@ jobs:
|
||||
REPO_HOST: ${{ vars.REPO_HOST }}
|
||||
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 *.tgz
|
||||
helm push ${CHART_NAME}-${CHART_VERSION}.tgz oci://$REPO_HOST/helm
|
||||
|
Loading…
Reference in New Issue
Block a user