Skip to content

Test run of new chart releaser code #25

Test run of new chart releaser code

Test run of new chart releaser code #25

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_DIR: chart
CHART_REPO: metal-toolbox/fleet-scheduler
CHART_NAME: fleet-scheduler
CHART_REPO_BRANCH: main
CHART_VERSION: 0.0.3
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
path: ${{ env.CHART_NAME }}
fetch-depth: 0
-
name: Checkout Helm chart Repo
uses: actions/checkout@v4
with:
repository: jakeschuurmans/helm-chart-test
path: helm-chart
token: ${{ secrets.GITHUB_TOKEN }}
-
name: Install Helm
uses: azure/[email protected]
-
name: Install yq
uses: mikefarah/[email protected]
-
name: Package Helm Chart
run: |
sed -i "s/VERSION/${{ env.CHART_VERSION }}/g" ./${{ env.CHART_NAME }}/chart/Chart.yaml
helm package ./${{ env.CHART_NAME }}/chart -u -d ./helm-chart/
helm repo index ./helm-chart/ --url https://jakeschuurmans.github.io/helm-chart-test
-
name: Create Git Commit
run: |
cd helm-chart
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
git add index.yaml *.tgz
git commit -m "published ${{ env.CHART_NAME }}-${{ env.CHART_VERSION }}.tgz"
-
name: Push Changes
uses: ad-m/github-push-action@master
with:
directory: helm-chart
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
repository: jakeschuurmans/helm-chart-test