Skip to content

Testing another change to the chart releaser #32

Testing another change to the chart releaser

Testing another change to the chart releaser #32

Workflow file for this run

name: Release Charts
on:
push:
branch:
- FS-1428
jobs:
build:
name: Publish Helm Chart
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
env:
CHART_NAME: fleet-scheduler
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
path: ${{ env.CHART_NAME }}
fetch-depth: 0
-
name: Install Helm
uses: azure/[email protected]
-
name: Package and ship Helm Chart
run: |
git clone [email protected]:metal-toolbox/helm-charts.git ./helm-charts
sed -i "s/VERSION/${{ github.ref_name }}/g" ./${{ env.CHART_NAME }}/chart/Chart.yaml
helm package ./${{ env.CHART_NAME }}/chart -u -d ./helm-charts/
helm repo index ./helm-charts/ --url https://metal-toolbox.github.io/helm-charts/
cd helm-charts
git config --unset-all http.https://github.com/.extraheader
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
git add index.yaml *.tgz
git commit -m "published ${{ env.CHART_NAME }}-${{ github.ref_name }}.tgz"
git push https://token:${{ secrets.GITHUB_TOKEN }}@github.com/metal-toolbox/helm-charts.git