2021-10-24 07:12:12 +00:00
|
|
|
name: Helm Chart CI
|
2021-10-23 20:07:27 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
# Triggers the workflow on push or pull request events but only for the dev branch
|
|
|
|
push:
|
|
|
|
branches: [ dev ]
|
|
|
|
paths: [ dev/helm/** ]
|
|
|
|
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-10-24 07:12:12 +00:00
|
|
|
name: Update Chart
|
2021-10-23 20:07:27 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
|
|
- uses: actions/checkout@v2
|
2021-10-24 06:42:27 +00:00
|
|
|
|
|
|
|
- name: Package and Push Chart
|
2021-10-23 20:07:27 +00:00
|
|
|
run: |
|
2021-10-24 06:42:27 +00:00
|
|
|
helm plugin install https://github.com/chartmuseum/helm-push.git
|
2021-10-24 07:00:53 +00:00
|
|
|
helm repo add chartmuseum https://charts.js.wiki
|
2021-10-24 07:12:12 +00:00
|
|
|
helm cm-push --version="2.2.${{github.run_number}}" --username="${{secrets.HELM_REPO_USERNAME}}" --password="${{secrets.HELM_REPO_PASSWORD}}" dev/helm/ chartmuseum
|
2021-10-24 06:58:55 +00:00
|
|
|
helm repo remove chartmuseum
|