-
Notifications
You must be signed in to change notification settings - Fork 13
65 lines (62 loc) · 1.69 KB
/
ci.yaml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: ci
on:
pull_request:
jobs:
lint-bash-scripts:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Lint Bash scripts
uses: docker://koalaman/shellcheck-alpine:v0.7.0
with:
args: .github/lint-scripts.sh
ci:
name: ci
runs-on: ubuntu-latest
needs:
- lint-bash-scripts
env:
HELM_VERSION: v3.3.4
strategy:
matrix:
k8s-version:
- v1.14.10
- v1.15.12
- v1.16.15
- v1.17.11
- v1.18.8
- v1.19.1
keycloak-chart:
- 9.0.1
keycloak-controller-chart:
- 0.6.1
steps:
- name: Checkout
uses: actions/checkout@v2
- name: provision
run: |
.github/ci.provision.kubernetes.sh ${{ matrix.k8s-version }} & \
.github/ci.provision.helm.sh $HELM_VERSION & \
.github/ci.provision.maven.sh & \
wait
- name: maven
run: .github/ci.maven.sh
- name: Create kind ${{ matrix.k8s-version }} cluster
uses: helm/kind-action@main
with:
config: .github/kind-config.yaml
node_image: kindest/node:${{ matrix.k8s-version }}
- name: build docker image & push to kind nodes
run: .github/ci.docker-build.sh
- name: helm
run: .github/ci.helm.sh
- name: keycloak and keycloak controller
run: |
.github/ci.keycloak.sh ${{ matrix.keycloak-chart }} & \
.github/ci.keycloak-controller.sh ${{ matrix.keycloak-controller-chart }} & \
wait
- name: examples
run: .github/ci.example.sh
- name: verify
run: .github/ci.verify.sh