-
Notifications
You must be signed in to change notification settings - Fork 26
131 lines (108 loc) · 3.38 KB
/
scripts.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
---
name: Shared Scripts
on:
pull_request:
permissions: {}
env:
DEBUG_PRINT: true
jobs:
clusters:
name: Clusters
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Deploy clusters
env:
TIMEOUT: 1m
run: make clusters
- name: Post mortem
if: failure()
uses: ./gh-actions/post-mortem
- name: Clean up clusters
run: make clean-clusters
compile:
name: Compile
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Test the compile.sh script
run: make vendor/modules.txt script-test SCRIPT_TEST_ARGS="test/scripts/compile/test.sh"
deploy:
name: Deploy
timeout-minutes: 30
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
globalnet: ['', 'globalnet']
deploytool: ['operator', 'helm']
extra-toggles: ['']
include:
- extra-toggles: air-gap
- extra-toggles: air-gap
globalnet: globalnet
- extra-toggles: air-gap
lighthouse: lighthouse
- extra-toggles: air-gap
ovn: ovn
- extra-toggles: ovn
- deploytool: operator
extra-toggles: lighthouse
- deploytool: helm
extra-toggles: lighthouse
- extra-toggles: load-balancer
- extra-toggles: prometheus
steps:
- name: Reclaim space on GHA host (if the job needs it)
if: ${{ matrix.ovn != '' }}
run: rm -rf /usr/share/dotnet
- name: Check out the repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
with:
submodules: true
- name: Fetch all git tags
run: git fetch origin +refs/tags/*:refs/tags/*
- name: Deploy clusters and Submariner
env:
TIMEOUT: 1m
run: make deploy using="${{ matrix.globalnet }} ${{ matrix.deploytool }} ${{ matrix.extra-toggles }}"
- name: Post mortem
if: failure()
uses: ./gh-actions/post-mortem
- name: Clean up deployment
run: make clean-clusters
e2e:
name: E2E
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Run E2E deployment and tests
run: make e2e
- name: Post mortem
if: failure()
uses: ./gh-actions/post-mortem
post_mortem:
name: Post Mortem
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Deploy some clusters
run: make clusters
- name: Test the post_mortem.sh script
run: make script-test SCRIPT_TEST_ARGS="test/scripts/post_mortem/test.sh"
verify_gateways:
name: Verify gateways
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Deploy clusters and test cloud-prepare
run: make script-test SCRIPT_TEST_ARGS="test/scripts/cloud-prepare/test.sh"
- name: Clean up deployment
run: make clean-clusters