@@ -207,44 +207,8 @@ jobs:
207
207
- name : Push the package
208
208
run : dotnet nuget push /tmp/packages/ArmoniK.Core.*.nupkg -k ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
209
209
210
- imagesCore :
211
- runs-on : ubuntu-latest
212
- needs :
213
- - versionning
214
- - buildProjects
215
- env :
216
- VERSION : ${{ needs.versionning.outputs.version }}
217
- steps :
218
- - name : Checkout
219
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
220
- with :
221
- ref : ${{ github.ref }}
222
- submodules : true
223
-
224
- - name : Setup just
225
- run : |
226
- sudo snap install --edge --classic just
227
-
228
- - name : login
229
- run : echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_LOGIN }} --password-stdin
230
210
231
- - name : Build
232
- run : |
233
- just tag=$VERSION build-core
234
-
235
- - name : push
236
- run : |
237
- while IFS= read -r IMG
238
- do
239
- docker push $IMG:${VERSION}
240
- done <<-EOF
241
- dockerhubaneo/armonik_control
242
- dockerhubaneo/armonik_control_partition_metrics
243
- dockerhubaneo/armonik_control_metrics
244
- dockerhubaneo/armonik_pollingagent
245
- EOF
246
-
247
- imagesRe :
211
+ images :
248
212
runs-on : ubuntu-latest
249
213
needs :
250
214
- versionning
@@ -254,149 +218,40 @@ jobs:
254
218
strategy :
255
219
fail-fast : true
256
220
matrix :
257
- include :
258
- - img : dockerhubaneo/armonik_core_stream_test_worker
259
- path : ./Tests/Stream/Server/Dockerfile
260
- - img : dockerhubaneo/armonik_core_stream_test_client
261
- path : ./Tests/Stream/Client/Dockerfile
262
- - img : dockerhubaneo/armonik_core_htcmock_test_worker
263
- path : ./Tests/HtcMock/Server/src/Dockerfile
264
- - img : dockerhubaneo/armonik_core_htcmock_test_client
265
- path : ./Tests/HtcMock/Client/src/Dockerfile
266
- - img : dockerhubaneo/armonik_core_bench_test_worker
267
- path : ./Tests/Bench/Server/src/Dockerfile
268
- - img : dockerhubaneo/armonik_core_bench_test_client
269
- path : ./Tests/Bench/Client/src/Dockerfile
221
+ type :
222
+ - build-core
223
+ - buildBenchClient
224
+ - worker=bench buildWorker
225
+ - buildStreamClient
226
+ - worker=stream buildWorker
227
+ - buildHtcmockClient
228
+ - worker=htcmock buildWorker
270
229
steps :
271
230
- name : Checkout
272
231
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
273
232
with :
274
233
ref : ${{ github.ref }}
275
- submodules : true
276
234
277
- - name : login
278
- run : echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_LOGIN }} --password-stdin
279
-
280
- - name : Build
281
- run : docker build --build-arg VERSION=$VERSION -t ${{ matrix.img }}:$VERSION -f ${{ matrix.path }} .
282
-
283
- - name : push
284
- run : docker push ${{ matrix.img }}:$VERSION
285
-
286
- imagesCoreC :
287
- if : github.ref == 'refs/heads/main'
288
- runs-on : ubuntu-latest
289
- needs :
290
- - versionning
291
- - imagesCore
292
- env :
293
- VERSION : ${{ needs.versionning.outputs.version }}
294
- steps :
295
- - name : Checkout
296
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
297
- with :
298
- ref : ${{ github.ref }}
299
- submodules : true
235
+ - name : Set up Docker Buildx
236
+ id : buildx
237
+ uses : docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3
300
238
301
239
- name : Setup just
302
240
run : |
303
241
sudo snap install --edge --classic just
304
242
305
- - name : Set up QEMU
306
- uses : docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3
307
-
308
- - name : Set up Docker Buildx
309
- id : buildx
310
- uses : docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3
311
-
312
243
- name : login
313
- uses : docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3
314
- with :
315
- username : ${{ secrets.DOCKER_HUB_LOGIN }}
316
- password : ${{ secrets.DOCKER_HUB_TOKEN }}
244
+ run : echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_LOGIN }} --password-stdin
317
245
318
246
- name : Build
319
- run : just tag=${VERSION}-arm builder=buildx build-core
320
-
321
- - name : Rename
322
247
run : |
323
- while IFS= read -r IMG
324
- do
325
- docker buildx imagetools create $IMG:${VERSION} --tag $IMG:${VERSION} --append $IMG:${VERSION}-arm
326
- done <<-EOF
327
- dockerhubaneo/armonik_control
328
- dockerhubaneo/armonik_control_partition_metrics
329
- dockerhubaneo/armonik_control_metrics
330
- dockerhubaneo/armonik_pollingagent
331
- EOF
332
-
333
- imagesReC :
334
- if : github.ref == 'refs/heads/main'
335
- runs-on : ubuntu-latest
336
- needs :
337
- - versionning
338
- - imagesRe
339
- env :
340
- VERSION : ${{ needs.versionning.outputs.version }}
341
- strategy :
342
- fail-fast : false
343
- matrix :
344
- include :
345
- - img : dockerhubaneo/armonik_core_stream_test_worker
346
- path : ./Tests/Stream/Server/Dockerfile
347
- - img : dockerhubaneo/armonik_core_stream_test_client
348
- path : ./Tests/Stream/Client/Dockerfile
349
- - img : dockerhubaneo/armonik_core_htcmock_test_worker
350
- path : ./Tests/HtcMock/Server/src/Dockerfile
351
- - img : dockerhubaneo/armonik_core_htcmock_test_client
352
- path : ./Tests/HtcMock/Client/src/Dockerfile
353
- - img : dockerhubaneo/armonik_core_bench_test_worker
354
- path : ./Tests/Bench/Server/src/Dockerfile
355
- - img : dockerhubaneo/armonik_core_bench_test_client
356
- path : ./Tests/Bench/Client/src/Dockerfile
357
- steps :
358
- - name : Checkout
359
- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
360
- with :
361
- ref : ${{ github.ref }}
362
- submodules : true
248
+ just tag=$VERSION platform=linux/arm64,linux/amd64 load=false push=true ${{ matrix.type }}
363
249
364
- - name : Set up QEMU
365
- uses : docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # v3
366
-
367
- - name : Set up Docker Buildx
368
- id : buildx
369
- uses : docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3
370
-
371
- - name : login
372
- uses : docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3
373
- with :
374
- username : ${{ secrets.DOCKER_HUB_LOGIN }}
375
- password : ${{ secrets.DOCKER_HUB_TOKEN }}
376
-
377
- - name : platforms
378
- run : echo ${{ steps.buildx.outputs.platforms }}
379
-
380
- - name : Build and push
381
- uses : docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5
382
- with :
383
- file : ${{ matrix.path }}
384
- context : .
385
- platforms : linux/arm64
386
- build-args : |
387
- VERSION=${{ needs.versionning.outputs.version }}
388
- push : true
389
- tags : |
390
- ${{ matrix.img }}:${{ needs.versionning.outputs.version }}-arm
391
-
392
- - name : Create multi-arch manifest
393
- run : docker buildx imagetools create ${{ matrix.img }}:${VERSION} --tag ${{ matrix.img }}:${VERSION} --append ${{ matrix.img }}:${VERSION}-arm
394
250
395
251
testStreamDC :
396
252
needs :
397
253
- versionning
398
- - imagesCore
399
- - imagesRe
254
+ - images
400
255
env :
401
256
VERSION : ${{ needs.versionning.outputs.version }}
402
257
runs-on : ubuntu-latest
@@ -481,8 +336,7 @@ jobs:
481
336
testHtcMockDC :
482
337
needs :
483
338
- versionning
484
- - imagesCore
485
- - imagesRe
339
+ - images
486
340
env :
487
341
VERSION : ${{ needs.versionning.outputs.version }}
488
342
runs-on : ubuntu-latest
@@ -655,8 +509,7 @@ jobs:
655
509
testConnectivity :
656
510
needs :
657
511
- versionning
658
- - imagesCore
659
- - imagesRe
512
+ - images
660
513
env :
661
514
VERSION : ${{ needs.versionning.outputs.version }}
662
515
runs-on : ubuntu-latest
@@ -739,8 +592,7 @@ jobs:
739
592
runBench :
740
593
needs :
741
594
- versionning
742
- - imagesCore
743
- - imagesRe
595
+ - images
744
596
env :
745
597
VERSION : ${{ needs.versionning.outputs.version }}
746
598
runs-on : ubuntu-latest
@@ -848,8 +700,7 @@ jobs:
848
700
defaultPartitionMock :
849
701
needs :
850
702
- versionning
851
- - imagesCore
852
- - imagesRe
703
+ - images
853
704
env :
854
705
VERSION : ${{ needs.versionning.outputs.version }}
855
706
runs-on : ubuntu-latest
@@ -921,8 +772,7 @@ jobs:
921
772
healthCheckTest :
922
773
needs :
923
774
- versionning
924
- - imagesCore
925
- - imagesRe
775
+ - images
926
776
env :
927
777
VERSION : ${{ needs.versionning.outputs.version }}
928
778
runs-on : ubuntu-latest
@@ -1068,8 +918,7 @@ jobs:
1068
918
- testHtcMockDC
1069
919
- defaultPartitionMock
1070
920
- testStreamDC
1071
- - imagesCore
1072
- - imagesRe
921
+ - images
1073
922
- runBench
1074
923
- healthCheckTest
1075
924
- testConnectivity
0 commit comments