Skip to content

Commit

Permalink
feat(ci): push helm chart to our repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ddfreiling committed May 6, 2024
1 parent 718c501 commit 0389e6b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/chart.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: publish helm chart

on:
workflow_dispatch:
push:
branches: ["ci"]

jobs:
chart:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Update chart
run: ./ci/update_chart_version.sh
- name: Commit chart update
run: |
git config user.name "nota-ci"
git config user.email "[email protected]"
# git add ci/helm-chart/Chart.yaml
git commit -m "chor(ci): update Chart version" || echo "No changes to commit"
git push origin ${{ github.ref_name }}
- name: Publish Helm chart
uses: stefanprodan/[email protected]
with:
token: ${{ secrets.GH_HELM_CHARTS_WRITE }}
owner: notalib
charts_dir: ci
repository: helm-charts
target_dir: charts
index_dir: .
commit_username: nota-ci
commit_email: [email protected]
2 changes: 2 additions & 0 deletions ci/update_chart_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ fi

yq eval ".appVersion = \"$APP_VERSION\"" -i helm-chart/Chart.yaml
yq eval ".version = \"$APP_VERSION\"" -i helm-chart/Chart.yaml

echo $APP_VERSION

0 comments on commit 0389e6b

Please sign in to comment.