-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
35 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,35 @@ | ||
name: 'Helm release' | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'helm-charts/l7mp-operator/Chart.yml' | ||
- 'helm-charts/l7mp-ingress/Chart.yml' | ||
|
||
jobs: | ||
release: | ||
name: 'Helm release' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'checkout' | ||
uses: actions/checkout@v2 | ||
- name: 'pyhton_client generate' | ||
shell: bash | ||
run: .python-client/generate | ||
- name: 'k8s-operator build' | ||
shell: bash | ||
run: .k8s-operator/build | ||
- name: 'build helm charts' | ||
run: | | ||
cd helm-charts | ||
helm package l7mp-operator l7mp-ingress | ||
cd .. | ||
- name: 'update l7mp.io/charts' | ||
run: | | ||
git clone https://github.com/l7mp/l7mp.io.git | ||
copy helm-charts/*.tgz l7mp.io/charts | ||
helm repo index l7mp.io/charts/ --url https://l7mp.io/charts | ||
git add l7mp.io | ||
git commit -m "Automatic publish from l7mp/l7mp Helm release action" | ||
git push l7mp.io master | ||