File tree Expand file tree Collapse file tree 3 files changed +17
-10
lines changed
Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 2626 uses : actions/checkout@v4
2727 -
2828 name : Test
29- uses : docker/bake-action@v5
29+ uses : docker/bake-action@v6
3030 with :
31+ source : .
3132 targets : test
3233 -
3334 name : Upload coverage
Original file line number Diff line number Diff line change @@ -21,16 +21,17 @@ jobs:
2121 prepare :
2222 runs-on : ubuntu-latest
2323 outputs :
24- targets : ${{ steps.targets .outputs.matrix }}
24+ targets : ${{ steps.generate .outputs.targets }}
2525 steps :
2626 -
2727 name : Checkout
2828 uses : actions/checkout@v4
2929 -
30- name : Targets matrix
31- id : targets
32- run : |
33- echo "matrix=$(docker buildx bake validate --print | jq -cr '.group.validate.targets')" >> $GITHUB_OUTPUT
30+ name : List targets
31+ id : generate
32+ uses : docker/bake-action/subaction/list-targets@v6
33+ with :
34+ target : validate
3435
3536 validate :
3637 runs-on : ubuntu-latest
4142 matrix :
4243 target : ${{ fromJson(needs.prepare.outputs.targets) }}
4344 steps :
44- -
45- name : Checkout
46- uses : actions/checkout@v4
4745 -
4846 name : Validate
49- uses : docker/bake-action@v5
47+ uses : docker/bake-action@v6
5048 with :
5149 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+
17group "default" {
28 targets = [" build" ]
39}
@@ -17,6 +23,7 @@ target "build" {
1723}
1824
1925target "build-validate" {
26+ inherits = [" _common" ]
2027 dockerfile = " dev.Dockerfile"
2128 target = " build-validate"
2229 output = [" type=cacheonly" ]
@@ -41,6 +48,7 @@ target "vendor" {
4148}
4249
4350target "vendor-validate" {
51+ inherits = [" _common" ]
4452 dockerfile = " dev.Dockerfile"
4553 target = " vendor-validate"
4654 output = [" type=cacheonly" ]
You can’t perform that action at this time.
0 commit comments