File tree Expand file tree Collapse file tree 1 file changed +21
-8
lines changed Expand file tree Collapse file tree 1 file changed +21
-8
lines changed Original file line number Diff line number Diff line change 20
20
SETUP_BUILDKIT_IMAGE : " moby/buildkit:latest"
21
21
22
22
jobs :
23
+ prepare :
24
+ runs-on : ubuntu-20.04
25
+ outputs :
26
+ targets : ${{ steps.targets.outputs.matrix }}
27
+ steps :
28
+ -
29
+ name : Checkout
30
+ uses : actions/checkout@v3
31
+ -
32
+ name : Matrix
33
+ id : targets
34
+ run : |
35
+ echo "matrix=$(docker buildx bake validate --print | jq -cr '.group.validate.targets')" >> $GITHUB_OUTPUT
36
+
23
37
validate :
24
38
runs-on : ubuntu-20.04
39
+ needs :
40
+ - prepare
25
41
strategy :
26
42
fail-fast : false
27
43
matrix :
28
- include :
29
- - script : ./hack/lint
30
- - script : ./hack/validate-vendor
31
- - script : ./hack/validate-generated-files
32
- - script : ./hack/validate-shfmt
44
+ target : ${{ fromJson(needs.prepare.outputs.targets) }}
33
45
steps :
34
46
-
35
47
name : Checkout
42
54
driver-opts : image=${{ env.SETUP_BUILDKIT_IMAGE }}
43
55
buildkitd-flags : --debug
44
56
-
45
- name : Run
46
- run : |
47
- ${{ matrix.script }}
57
+ name : Validate
58
+ uses : docker/bake-action@v2
59
+ with :
60
+ targets : ${{ matrix.target }}
You can’t perform that action at this time.
0 commit comments