File tree 4 files changed +19
-12
lines changed 4 files changed +19
-12
lines changed Original file line number Diff line number Diff line change 24
24
matrix :
25
25
os :
26
26
- ubuntu-latest
27
- - macOS -latest
27
+ - macos -latest
28
28
- windows-latest
29
29
version :
30
30
- latest
@@ -108,7 +108,7 @@ jobs:
108
108
matrix :
109
109
os :
110
110
- ubuntu-latest
111
- - macOS -latest
111
+ - macos -latest
112
112
- windows-latest
113
113
steps :
114
114
-
@@ -210,7 +210,7 @@ jobs:
210
210
matrix :
211
211
os :
212
212
- ubuntu-latest
213
- - macOS -latest
213
+ - macos -latest
214
214
- windows-latest
215
215
distribution :
216
216
- goreleaser-pro
Original file line number Diff line number Diff line change 24
24
name : Test
25
25
uses : docker/bake-action@v6
26
26
with :
27
+ source : .
27
28
targets : test
28
29
-
29
30
name : Upload coverage
Original file line number Diff line number Diff line change @@ -15,16 +15,17 @@ jobs:
15
15
prepare :
16
16
runs-on : ubuntu-latest
17
17
outputs :
18
- targets : ${{ steps.targets .outputs.matrix }}
18
+ targets : ${{ steps.generate .outputs.targets }}
19
19
steps :
20
20
-
21
21
name : Checkout
22
22
uses : actions/checkout@v4
23
23
-
24
- name : Targets matrix
25
- id : targets
26
- run : |
27
- echo "matrix=$(docker buildx bake validate --print | jq -cr '.group.validate.targets')" >> $GITHUB_OUTPUT
24
+ name : List targets
25
+ id : generate
26
+ uses : docker/bake-action/subaction/list-targets@v6
27
+ with :
28
+ target : validate
28
29
29
30
validate :
30
31
runs-on : ubuntu-latest
35
36
matrix :
36
37
target : ${{ fromJson(needs.prepare.outputs.targets) }}
37
38
steps :
38
- -
39
- name : Checkout
40
- uses : actions/checkout@v4
41
39
-
42
40
name : Validate
43
- uses : docker/bake-action@v5
41
+ uses : docker/bake-action@v6
44
42
with :
45
43
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