@@ -13,21 +13,24 @@ jobs:
13
13
main :
14
14
name : Test image
15
15
strategy :
16
- fail-fast : false # Finish other jobs on failure
16
+ fail-fast : true
17
17
matrix :
18
18
include :
19
19
- { version: dmd-nightly, exec: dmd }
20
20
- { version: dmd-beta, exec: dmd }
21
21
- { version: dmd, exec: dmd }
22
22
- { version: ldc-beta, exec: ldmd2 }
23
23
- { version: ldc, exec: ldmd2 }
24
-
24
+ runs-on : ubuntu-latest
25
25
steps :
26
+ - name : Checkout repo
27
+ uses : actions/checkout@v2
28
+
26
29
- name : Set up Docker Buildx
27
30
uses : docker/setup-buildx-action@v1
28
31
29
32
- name : Login to DockerHub
30
- if : ${{ github.event_name == 'push' }}
33
+ if : ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
31
34
uses : docker/login-action@v1
32
35
with :
33
36
username : ${{ secrets.DOCKER_USERNAME }}
@@ -36,19 +39,22 @@ jobs:
36
39
- name : Build image
37
40
uses : docker/build-push-action@v2
38
41
with :
39
- push : ${{ github.event_name == 'push' }}
40
- load : ${{ github.event_name != 'push' }}
42
+ push : false
43
+ load : true
41
44
tags : dlangtour/core-exec:${{ matrix.version }}
42
45
build-args : |
43
46
DLANG_VERSION=${{ matrix.version }}
44
47
DLANG_EXEC=${{ matrix.exec }}
45
48
46
- - name : Checkout repo
47
- uses : actions/checkout@v2
48
- with :
49
- submodules : true
50
-
51
- - name : Run test.sh
49
+ - name : Test image
52
50
run : ./test.sh "dlangtour/core-exec:${{ matrix.version }}"
53
51
54
- runs-on : ubuntu-latest
52
+ - name : Push 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