changed to gitea helm repo
Some checks failed
Package and publish helm chart / package-helm (push) Failing after 11s
Some checks failed
Package and publish helm chart / package-helm (push) Failing after 11s
This commit is contained in:
parent
f924f986a9
commit
224c1ccd2f
@ -12,11 +12,6 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
name: Check out code
|
name: Check out code
|
||||||
|
|
||||||
- name: Set up Helm
|
|
||||||
uses: azure/setup-helm@v4.2.0
|
|
||||||
with:
|
|
||||||
version: v3.14.4
|
|
||||||
|
|
||||||
- name: Get package name
|
- name: Get package name
|
||||||
id: chart_name
|
id: chart_name
|
||||||
uses: mikefarah/yq@master
|
uses: mikefarah/yq@master
|
||||||
@ -32,15 +27,11 @@ jobs:
|
|||||||
- name: build helm package
|
- name: build helm package
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }}
|
PACKAGE_TOKEN: ${{ secrets.REPO_HOST }}
|
||||||
REPO_USERNAME: ${{ secrets.REPO_USERNAME }}
|
|
||||||
REPO_HOST: ${{ secrets.REPO_HOST }}
|
|
||||||
CHART_NAME: ${{ steps.chart_name.outputs.result }}
|
CHART_NAME: ${{ steps.chart_name.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)
|
||||||
mkdir /tmp/build
|
mkdir /tmp/build
|
||||||
cd /tmp/build
|
cd /tmp/build
|
||||||
helm package $REPO_PATH
|
curl -H "Authorization: token $PACKAGE_TOKEN" -X POST --upload-file $CHART_NAME-$CHART_VERSION.tgz https://git.rre.nu/api/packages/jonas/helm/api/charts
|
||||||
helm registry login --username $REPO_USERNAME --password $REPO_PASSWORD $REPO_HOST
|
|
||||||
helm push ${CHART_NAME}-${CHART_VERSION}.tgz oci://$REPO_HOST/helm
|
|
||||||
|
Loading…
Reference in New Issue
Block a user