forked from StepicOrg/epicbox-images
-
Notifications
You must be signed in to change notification settings - Fork 1
422 lines (419 loc) · 13.4 KB
/
ci.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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
name: CI
on:
push:
branches:
- 'master'
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
build_debian_image:
name: Build epicbox/debian image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-debian
image_name_tag: debian:bullseye
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
add_hash: false
build_clojure_image:
name: Build epicbox-clojure image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-clojure
image_name_tag: clojure:1.9.0.397
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_gcc_image:
name: Build epicbox-gcc image
needs: build_debian_image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-gcc
image_name_tag: gcc:10.2.1
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_go_image:
name: Build epicbox-go image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-go
image_name_tag: go:1.18.2.1
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_haskell_image:
name: Build epicbox-haskell image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-haskell
image_name_tag: haskell:8.8.4
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_hyperskill_go_image:
name: Build epicbox-hyperskill/go image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-hyperskill/go
image_name_tag: hyperskill-go:1.18.2
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_hyperskill_gcc_image:
name: Build epicbox-hyperskill/gcc image
needs: build_debian_image
runs-on: [ self-hosted, small ]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-hyperskill/gcc
image_name_tag: hyperskill-gcc:10.2.1
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_hyperskill_gradle_image:
name: Build epicbox-hyperskill/gradle image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-hyperskill/gradle
image_name_tag: hyperskill-gradle:7.3-jdk11
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_hyperskill_gradle_spring_image:
name: Build epicbox-hyperskill/gradle-spring image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-hyperskill/gradle-spring
image_name_tag: hyperskill-gradle-spring:7.3-jdk17
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_hyperskill_java_image:
name: Build epicbox-hyperskill/java image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-hyperskill/java
image_name_tag: hyperskill-java:17
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_hyperskill_node_image:
name: Build epicbox-hyperskill/node image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-hyperskill/node
image_name_tag: hyperskill-node:18.17.1
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_hyperskill_node_javascript_image:
name: Build epicbox-hyperskill/node-javascript image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-hyperskill/node-javascript
image_name_tag: hyperskill-node-javascript:18.17.1
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_hyperskill_python_image:
name: Build epicbox-hyperskill/python image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-hyperskill/python
image_name_tag: hyperskill-python:3.10
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_java7_image:
name: Build epicbox/java7 image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-java/7
image_name_tag: java:7u181
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_java8_image:
name: Build epicbox/java8 image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-java/8
image_name_tag: java:8u181
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_java11_image:
name: Build epicbox/java11 image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-java/11
image_name_tag: java:11.0.1
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_java17_image:
name: Build epicbox/java17 image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-java/17
image_name_tag: java:17.0.1
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_kotlin_image:
name: Build epicbox/kotlin image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-kotlin
image_name_tag: kotlin:1.9.10
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_mono_image:
name: Build epicbox/mono image
needs: build_debian_image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-mono
image_name_tag: mono:6.10.0.104
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_node_image:
name: Build epicbox/node image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-node
image_name_tag: node:18.17.1
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_php_image:
name: Build epicbox/php image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-php
image_name_tag: php:7.2.6
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_pmd_image:
name: Build epicbox/pmd image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-pmd
image_name_tag: pmd:6.9.0
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_python_310_image:
name: Build epicbox/python 3.10 image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-python/310
image_name_tag: python:3.10.6
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_python_311_image:
name: Build epicbox/python 3.11 image
runs-on: [ self-hosted, small ]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-python/311
image_name_tag: python:3.11.5
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_ruby_image:
name: Build epicbox/ruby image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-ruby
image_name_tag: ruby:2.5.3
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_scala2_image:
name: Build epicbox/scala2 image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-scala/2
image_name_tag: scala:2.13.12
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_scala3_image:
name: Build epicbox/scala3 image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-scala/3
image_name_tag: scala:3.0.0
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
build_typescript_image:
name: Build epicbox/typescript image
runs-on: [self-hosted, small]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build
uses: ./.github/workflows/actions/build
with:
path: epicbox-typescript
image_name_tag: typescript:4.8.4
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
clean_untagged_images:
name: Clean untagged images
needs:
- build_clojure_image
- build_debian_image
- build_gcc_image
- build_go_image
- build_haskell_image
- build_hyperskill_gcc_image
- build_hyperskill_go_image
- build_hyperskill_gradle_image
- build_hyperskill_gradle_spring_image
- build_hyperskill_java_image
- build_hyperskill_node_image
- build_hyperskill_node_javascript_image
- build_hyperskill_python_image
- build_java7_image
- build_java8_image
- build_java11_image
- build_java17_image
- build_kotlin_image
- build_mono_image
- build_node_image
- build_php_image
- build_pmd_image
- build_python_310_image
- build_python_311_image
- build_ruby_image
- build_scala2_image
- build_scala3_image
- build_typescript_image
runs-on: [self-hosted, small]
steps:
- uses: hyperskill/[email protected]
with:
client_id: ${{ secrets.CLIENT_ID }}
client_secret: ${{ secrets.CLIENT_SECRET }}
subscription_id: ${{ secrets.SUBSCRIPTION_ID }}
tenant_id: ${{ secrets.TENANT_ID }}
repository_filter: epicbox/.*
registry: hyperskill