@@ -13,21 +13,24 @@ jobs:
1313 main :
1414 name : Test image
1515 strategy :
16- fail-fast : false # Finish other jobs on failure
16+ fail-fast : true
1717 matrix :
1818 include :
1919 - { version: dmd-nightly, exec: dmd }
2020 - { version: dmd-beta, exec: dmd }
2121 - { version: dmd, exec: dmd }
2222 - { version: ldc-beta, exec: ldmd2 }
2323 - { version: ldc, exec: ldmd2 }
24-
24+ runs-on : ubuntu-latest
2525 steps :
26+ - name : Checkout repo
27+ uses : actions/checkout@v2
28+
2629 - name : Set up Docker Buildx
2730 uses : docker/setup-buildx-action@v1
2831
2932 - name : Login to DockerHub
30- if : ${{ github.event_name == 'push' }}
33+ if : ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
3134 uses : docker/login-action@v1
3235 with :
3336 username : ${{ secrets.DOCKER_USERNAME }}
@@ -36,19 +39,22 @@ jobs:
3639 - name : Build image
3740 uses : docker/build-push-action@v2
3841 with :
39- push : ${{ github.event_name == 'push' }}
40- load : ${{ github.event_name != 'push' }}
42+ push : false
43+ load : true
4144 tags : dlangtour/core-exec:${{ matrix.version }}
4245 build-args : |
4346 DLANG_VERSION=${{ matrix.version }}
4447 DLANG_EXEC=${{ matrix.exec }}
4548
46- - name : Checkout repo
47- uses : actions/checkout@v2
48- with :
49- submodules : true
50-
5149 - name : Run test.sh
5250 run : ./test.sh "dlangtour/core-exec:${{ matrix.version }}"
5351
54- runs-on : ubuntu-latest
52+ - name : Build image
53+ uses : docker/build-push-action@v2
54+ with :
55+ push : ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
56+ load : false
57+ tags : dlangtour/core-exec:${{ matrix.version }}
58+ build-args : |
59+ DLANG_VERSION=${{ matrix.version }}
60+ DLANG_EXEC=${{ matrix.exec }}
0 commit comments