Skip to content

Commit 8cb664a

Browse files
committed
Added workflow, which lints and deploys to helm repo
1 parent 55ec85c commit 8cb664a

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/push.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Lint and Release chart
2+
3+
on: push
4+
5+
jobs:
6+
lint-test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v2
11+
12+
- name: install helm
13+
id: install
14+
uses: azure/setup-helm@v1
15+
with:
16+
version: '3.9.0'
17+
18+
- name: lint chart
19+
run: helm lint
20+
21+
deploy:
22+
name: deploy
23+
if: startsWith(github.ref, 'refs/tags/v')
24+
needs: lint-test
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: craftech-io/helm-push-action@v1
28+
with:
29+
helm-chart-repo-name: codex
30+
helm-chart-repo-url: https://charts.codex.so
31+
chart-dir: .
32+
repo-username: ${{ secrets.HELM_REPO_USERNAME }}
33+
repo-password: ${{ secrets.HELM_REPO_PASSWORD }}
34+
35+
36+

0 commit comments

Comments
 (0)