Skip to content

Commit

Permalink
Testing another change to the chart releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeschuurmans committed Jun 28, 2024
1 parent f7fae7d commit 8370f9f
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions .github/workflows/chart-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release Charts
on:
push:
branch:
- 'v*.*.*'
- FS-1428

jobs:
build:
Expand All @@ -21,36 +21,25 @@ jobs:
with:
path: ${{ env.CHART_NAME }}
fetch-depth: 0
-
name: Checkout Helm chart Repo
uses: actions/checkout@v4
with:
repository: metal-toolbox/helm-charts
path: helm-charts
ref: gh-pages
fetch-depth: 0
-
name: Install Helm
uses: azure/[email protected]
-
name: Package Helm Chart
name: Checkout Helm chart Repo
run: |
git config --unset-all http.https://github.com/.extraheader
git clone [email protected]:metal-toolbox/helm-charts.git
-
name: Package and ship Helm Chart
run: |
git config --unset-all http.https://github.com/.extraheader
git clone [email protected]:metal-toolbox/helm-charts.git
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/
-
name: Create Git Commit
run: |
cd helm-charts
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"
-
name: Push Changes
uses: ad-m/github-push-action@master
with:
repository: metal-toolbox/helm-charts
directory: helm-charts
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
git push https://token:${{ secrets.GITHUB_TOKEN }}@github.com/metal-toolbox/helm-charts.git

0 comments on commit 8370f9f

Please sign in to comment.