-
Notifications
You must be signed in to change notification settings - Fork 76
46 lines (43 loc) · 1.37 KB
/
microk8s.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: microk8s
on:
push:
branches:
- master
- main
paths:
- "charts/**"
- "automation/startjanssendemo.sh"
pull_request:
branches:
- master
- main
paths:
- "charts/**"
- "automation/startjanssendemo.sh"
workflow_dispatch:
permissions:
contents: read
jobs:
microk8s:
strategy:
max-parallel: 6
matrix:
istio: ["true", "false"]
# add '"pgsql" when supported
persistence-backends: ["MYSQL"]
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Test dev setup
id: start_up_script
run: |
ip=$(ifconfig eth0 | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1')
chmod u+x automation/startjanssendemo.sh
sudo bash ./automation/startjanssendemo.sh demoexample.jans.io ${{ matrix.persistence-backends }} true $ip ${{ matrix.istio }} "--devel"
sudo bash ./automation/analyze_test_microk8s_setup.sh "${{ secrets.MOAUTO_ROCKETCHAT_TOKEN }}" "${{ secrets.MOAUTO_ROCKETCHAT_ID }}" ${{ matrix.persistence-backends }}