-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: workflow for releasing helm chart
- Loading branch information
1 parent
aa507fa
commit 9efa09e
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: helm release | ||
on: | ||
workflow_run: | ||
workflows: ["release"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Checkout helm chart repo | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: exposr/helm-charts | ||
path: helm-charts | ||
token: ${{ secrets.HELM_CHART_REPO_TOKEN }} | ||
|
||
- name: Copy source chart | ||
run: | | ||
rm -fr helm-charts/charts/exposr | ||
cp -rp helm helm-charts/charts/exposr | ||
- name: Publish chart | ||
run: | | ||
cd helm-charts | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
git add . | ||
git commit -m 'chore: update exposr chart' | ||
git push |