-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(release): publish helm charts via kanister-charts repo github p…
…ages (#3142)
- Loading branch information
Showing
1 changed file
with
25 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 |
---|---|---|
|
@@ -111,6 +111,31 @@ jobs: | |
with: | ||
release_tag: ${{ needs.run_if.outputs.release_tag }} | ||
|
||
publish_charts: | ||
runs-on: [run_if, release_packages] | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
RELEASE_TAG: ${{ needs.run_if.outputs.release_tag }} | ||
steps: | ||
- name: clone helm pages | ||
run: | | ||
git clone https://infraq:${GH_TOKEN}@github.com/kanisterio/kanister-charts | ||
- name: Download the helm index | ||
working-directory: ./kanister-charts | ||
run: | | ||
curl https://github.com/kanisterio/kanister/releases/download/${RELEASE_TAG}/helm_index.yaml -f -L -o index.yaml | ||
- name: Commit changes | ||
working-directory: ./kanister-charts | ||
run: | | ||
git config --global user.name 'Kasten Production' | ||
git config --global user.email '[email protected]' | ||
git add -A | ||
git commit -s -m "Update chart index to ${RELEASE_TAG}" | ||
- name: Push changes | ||
working-directory: ./kanister-charts | ||
run: | | ||
git push | ||
## TODO: using https://github.com/slackapi/slack-github-action/blob/main/README.md#technique-3-slack-incoming-webhook | ||
## we need to set up incoming webhook | ||
## Alternatively we can also configure a bot token https://github.com/slackapi/slack-github-action/blob/main/README.md#technique-2-slack-app | ||
|