File tree 4 files changed +20
-13
lines changed
4 files changed +20
-13
lines changed Original file line number Diff line number Diff line change 44
44
- true
45
45
os :
46
46
- ubuntu-latest
47
- - macOS -latest
47
+ - macos -latest
48
48
- windows-latest
49
49
include :
50
50
- key : test-subkey
@@ -105,7 +105,7 @@ jobs:
105
105
- test-subkey
106
106
os :
107
107
- ubuntu-latest
108
- - macOS -latest
108
+ - macos -latest
109
109
- windows-latest
110
110
include :
111
111
- key : test-subkey
@@ -151,7 +151,7 @@ jobs:
151
151
- 1
152
152
os :
153
153
- ubuntu-latest
154
- - macOS -latest
154
+ - macos -latest
155
155
- windows-latest
156
156
steps :
157
157
-
Original file line number Diff line number Diff line change 24
24
uses : actions/checkout@v4
25
25
-
26
26
name : Test
27
- uses : docker/bake-action@v5
27
+ uses : docker/bake-action@v6
28
28
with :
29
+ source : .
29
30
targets : test
30
31
-
31
32
name : Upload coverage
Original file line number Diff line number Diff line change @@ -19,16 +19,17 @@ jobs:
19
19
prepare :
20
20
runs-on : ubuntu-latest
21
21
outputs :
22
- targets : ${{ steps.targets .outputs.matrix }}
22
+ targets : ${{ steps.generate .outputs.targets }}
23
23
steps :
24
24
-
25
25
name : Checkout
26
26
uses : actions/checkout@v4
27
27
-
28
- name : Targets matrix
29
- id : targets
30
- run : |
31
- echo "matrix=$(docker buildx bake validate --print | jq -cr '.group.validate.targets')" >> $GITHUB_OUTPUT
28
+ name : List targets
29
+ id : generate
30
+ uses : docker/bake-action/subaction/list-targets@v6
31
+ with :
32
+ target : validate
32
33
33
34
validate :
34
35
runs-on : ubuntu-latest
39
40
matrix :
40
41
target : ${{ fromJson(needs.prepare.outputs.targets) }}
41
42
steps :
42
- -
43
- name : Checkout
44
- uses : actions/checkout@v4
45
43
-
46
44
name : Validate
47
- uses : docker/bake-action@v5
45
+ uses : docker/bake-action@v6
48
46
with :
49
47
targets : ${{ matrix.target }}
Original file line number Diff line number Diff line change
1
+ target "_common" {
2
+ args = {
3
+ BUILDKIT_CONTEXT_KEEP_GIT_DIR = 1
4
+ }
5
+ }
6
+
1
7
group "default" {
2
8
targets = [" build" ]
3
9
}
@@ -17,6 +23,7 @@ target "build" {
17
23
}
18
24
19
25
target "build-validate" {
26
+ inherits = [" _common" ]
20
27
dockerfile = " dev.Dockerfile"
21
28
target = " build-validate"
22
29
output = [" type=cacheonly" ]
@@ -41,6 +48,7 @@ target "vendor" {
41
48
}
42
49
43
50
target "vendor-validate" {
51
+ inherits = [" _common" ]
44
52
dockerfile = " dev.Dockerfile"
45
53
target = " vendor-validate"
46
54
output = [" type=cacheonly" ]
You can’t perform that action at this time.
0 commit comments