File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 -
1515 name : Checkout
1616 uses : actions/checkout@v3
17- -
18- name : Validate
19- uses : docker/bake-action@v3
20- with :
21- targets : validate
2217 -
2318 name : Test
2419 uses : docker/bake-action@v3
Original file line number Diff line number Diff line change 1+ name : validate
2+
3+ concurrency :
4+ group : ${{ github.workflow }}-${{ github.ref }}
5+ cancel-in-progress : true
6+
7+ on :
8+ push :
9+ branches :
10+ - ' master'
11+ - ' releases/v*'
12+ pull_request :
13+
14+ jobs :
15+ prepare :
16+ runs-on : ubuntu-latest
17+ outputs :
18+ targets : ${{ steps.targets.outputs.matrix }}
19+ steps :
20+ -
21+ name : Checkout
22+ uses : actions/checkout@v3
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
28+
29+ validate :
30+ runs-on : ubuntu-latest
31+ needs :
32+ - prepare
33+ strategy :
34+ fail-fast : false
35+ matrix :
36+ target : ${{ fromJson(needs.prepare.outputs.targets) }}
37+ steps :
38+ -
39+ name : Checkout
40+ uses : actions/checkout@v3
41+ -
42+ name : Validate
43+ uses : docker/bake-action@v3
44+ with :
45+ targets : ${{ matrix.target }}
You can’t perform that action at this time.
0 commit comments