22
22
dependencies : ${{ steps.filter.outputs.dependencies }}
23
23
docker : ${{ steps.filter.outputs.docker }}
24
24
docker-files : ${{ steps.filter.outputs.docker_files }}
25
- docker-gentoo : ${{ steps.filter.outputs.docker-gentoo }}
26
25
markdown : ${{ steps.filter.outputs.markdown }}
27
26
helpers : ${{ steps.filter.outputs.helpers }}
28
27
shell : ${{ steps.filter.outputs.shell }}
@@ -417,6 +416,7 @@ jobs:
417
416
fail-fast : false
418
417
matrix :
419
418
include :
419
+ - { container: Gentoo, dockerfile: Dockerfile_gentoo }
420
420
- { container: Alpine, dockerfile: Dockerfile_alpine }
421
421
- { container: Amazon Linux, dockerfile: Dockerfile_amazonlinux }
422
422
- { container: Arch, dockerfile: Dockerfile_archlinux }
@@ -438,39 +438,24 @@ jobs:
438
438
run : grep 'VERSION\|ID' /etc/os-release && uname -a
439
439
- name : Build the ${{ matrix.container }} docker image
440
440
if : >-
441
- needs.changes.outputs.ci == 'true' ||
442
- needs.changes.outputs.dependencies == 'true' ||
443
- contains(needs.changes.outputs.docker-files, matrix.dockerfile) ||
444
- needs.changes.outputs.shell == 'true'
445
- uses : docker/build-push-action@v6
446
- timeout-minutes : 100
447
- with :
448
- build-args : NODEBUILDER_VERSION=${{ github.sha || github.head_ref || 'master' }}
449
- context : .
450
- file : docker/${{ matrix.dockerfile }}
451
-
452
- run-nodebuilder-gentoo :
453
- name : Docker image for ${{ matrix.container }}
454
- needs : [changes, dockerfile-lint, shell-lint, yaml-lint]
455
- if : >-
456
- needs.changes.outputs.docker-gentoo == 'true' ||
457
- ( github.event.action == '' &&
458
- github.event.before == '' &&
459
- github.event.inputs == null )
460
- runs-on : ubuntu-latest
461
- strategy :
462
- matrix :
463
- container : [Gentoo]
464
- include :
465
- - container : Gentoo
466
- dockerfile : Dockerfile_gentoo
467
- steps :
468
- - uses : actions/checkout@v4
469
- - name : Check the current OS version
470
- run : grep 'VERSION\|ID' /etc/os-release && uname -a
471
- - name : Build the ${{ matrix.container }} docker image
472
- timeout-minutes : 200
441
+ (
442
+ needs.changes.outputs.ci == 'true' ||
443
+ needs.changes.outputs.dependencies == 'true' ||
444
+ contains(needs.changes.outputs.docker-files, matrix.dockerfile) ||
445
+ needs.changes.outputs.shell == 'true'
446
+ )
447
+ &&
448
+ (
449
+ matrix.container != 'Gentoo' ||
450
+ contains(needs.changes.outputs.docker-files, 'Dockerfile_gentoo') ||
451
+ (
452
+ github.event.action == '' &&
453
+ github.event.before == '' &&
454
+ github.event.inputs == null
455
+ )
456
+ )
473
457
uses : docker/build-push-action@v6
458
+ timeout-minutes : 300
474
459
with :
475
460
build-args : NODEBUILDER_VERSION=${{ github.sha || github.head_ref || 'master' }}
476
461
context : .
0 commit comments