forked from Enapter/charts
-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (34 loc) · 1.08 KB
/
master.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Master
on:
push:
branches:
- master
jobs:
deploy:
runs-on: elisa-normal
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-python@v4
with:
python-version: '3.11'
check-latest: true
- uses: azure/setup-helm@v3
- uses: helm/[email protected]
- name: Lint chart
run: ct lint --chart-dirs keydb --charts keydb --validate-maintainers=false
- name: Create kind cluster
uses: helm/[email protected]
- name: Install required CRDs
run: kubectl apply -f keydb/test-crds/service-monitor.yaml
- name: Install chart
run: ct install --chart-dirs keydb --charts keydb --helm-extra-set-args "--set=topologySpreadConstraints="
- name: Notify failure
if: failure()
env:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
MATTERMOST_TEXT: "${{ github.repository }} master build. Please check [here](${{ github.event.pull_request.html_url }}/checks)."
run: |
send-to-mattermost