Skip to content

Commit

Permalink
Add helm release action
Browse files Browse the repository at this point in the history
  • Loading branch information
VidarHUN committed Feb 8, 2021
1 parent 62136da commit 7c5301d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/helm.yml
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

0 comments on commit 7c5301d

Please sign in to comment.