224c1ccd2f
Some checks failed
Package and publish helm chart / package-helm (push) Failing after 11s
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
name: Package and publish helm chart
|
|
|
|
on:
|
|
push:
|
|
# Pattern matched against refs/tags
|
|
tags:
|
|
- '**' # Push events to every tag including hierarchical tags like v1.0/beta
|
|
jobs:
|
|
package-helm:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
name: Check out code
|
|
|
|
- name: Get package name
|
|
id: chart_name
|
|
uses: mikefarah/yq@master
|
|
with:
|
|
cmd: yq .name Chart.yaml
|
|
|
|
- name: Get package version
|
|
id: chart_version
|
|
uses: mikefarah/yq@master
|
|
with:
|
|
cmd: yq .version Chart.yaml
|
|
|
|
- name: build helm package
|
|
shell: bash
|
|
env:
|
|
PACKAGE_TOKEN: ${{ secrets.REPO_HOST }}
|
|
CHART_NAME: ${{ steps.chart_name.outputs.result }}
|
|
CHART_VERSION: ${{ steps.chart_version.outputs.result }}
|
|
run: |
|
|
REPO_PATH=$(git rev-parse --show-toplevel)
|
|
mkdir /tmp/build
|
|
cd /tmp/build
|
|
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
|