File tree Expand file tree Collapse file tree 3 files changed +21
-13
lines changed Expand file tree Collapse file tree 3 files changed +21
-13
lines changed Original file line number Diff line number Diff line change 1515 test :
1616 runs-on : ubuntu-latest
1717 steps :
18- -
19- name : Checkout
20- uses : actions/checkout@v4
2118 -
2219 name : Test
23- uses : docker/bake-action@v5
20+ uses : docker/bake-action@v6
2421 with :
2522 targets : test
2623 -
Original file line number Diff line number Diff line change @@ -15,16 +15,17 @@ jobs:
1515 prepare :
1616 runs-on : ubuntu-latest
1717 outputs :
18- targets : ${{ steps.targets .outputs.matrix }}
18+ targets : ${{ steps.generate .outputs.targets }}
1919 steps :
2020 -
2121 name : Checkout
2222 uses : actions/checkout@v4
2323 -
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
2829
2930 validate :
3031 runs-on : ubuntu-latest
3536 matrix :
3637 target : ${{ fromJson(needs.prepare.outputs.targets) }}
3738 steps :
38- -
39- name : Checkout
40- uses : actions/checkout@v4
4139 -
4240 name : Validate
43- uses : docker/bake-action@v5
41+ uses : docker/bake-action@v6
4442 with :
4543 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}
@@ -11,42 +17,49 @@ group "validate" {
1117}
1218
1319target "build" {
20+ inherits = [" _common" ]
1421 dockerfile = " dev.Dockerfile"
1522 target = " build-update"
1623 output = [" ." ]
1724}
1825
1926target "build-validate" {
27+ inherits = [" _common" ]
2028 dockerfile = " dev.Dockerfile"
2129 target = " build-validate"
2230 output = [" type=cacheonly" ]
2331}
2432
2533target "format" {
34+ inherits = [" _common" ]
2635 dockerfile = " dev.Dockerfile"
2736 target = " format-update"
2837 output = [" ." ]
2938}
3039
3140target "lint" {
41+ inherits = [" _common" ]
3242 dockerfile = " dev.Dockerfile"
3343 target = " lint"
3444 output = [" type=cacheonly" ]
3545}
3646
3747target "vendor" {
48+ inherits = [" _common" ]
3849 dockerfile = " dev.Dockerfile"
3950 target = " vendor-update"
4051 output = [" ." ]
4152}
4253
4354target "vendor-validate" {
55+ inherits = [" _common" ]
4456 dockerfile = " dev.Dockerfile"
4557 target = " vendor-validate"
4658 output = [" type=cacheonly" ]
4759}
4860
4961target "test" {
62+ inherits = [" _common" ]
5063 dockerfile = " dev.Dockerfile"
5164 target = " test-coverage"
5265 output = [" ./coverage" ]
You can’t perform that action at this time.
0 commit comments