File tree Expand file tree Collapse file tree 3 files changed +42
-12
lines changed
Expand file tree Collapse file tree 3 files changed +42
-12
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,14 @@ name: ci
22
33on :
44 schedule :
5- - cron : ' 0 10 * * *' # everyday at 10am
5+ - cron : ' 0 10 * * *'
66 push :
77 branches :
88 - ' master'
99 - ' releases/v*'
1010 tags :
1111 - ' v*'
1212 pull_request :
13- branches :
14- - ' master'
15- - ' releases/v*'
1613
1714jobs :
1815 main :
Original file line number Diff line number Diff line change 66 - ' master'
77 - ' releases/v*'
88 pull_request :
9- branches :
10- - ' master'
11- - ' releases/v*'
129
1310jobs :
1411 test :
1714 -
1815 name : Checkout
1916 uses : actions/checkout@v3
20- -
21- name : Validate
22- uses : docker/bake-action@v2
23- with :
24- targets : validate
2517 -
2618 name : Set up Docker Buildx
2719 uses : ./
Original file line number Diff line number Diff line change 1+ name : validate
2+
3+ on :
4+ push :
5+ branches :
6+ - ' master'
7+ - ' releases/v*'
8+ pull_request :
9+
10+ jobs :
11+ prepare :
12+ runs-on : ubuntu-latest
13+ outputs :
14+ targets : ${{ steps.targets.outputs.matrix }}
15+ steps :
16+ -
17+ name : Checkout
18+ uses : actions/checkout@v3
19+ -
20+ name : Targets matrix
21+ id : targets
22+ run : |
23+ echo "matrix=$(docker buildx bake validate --print | jq -cr '.group.validate.targets')" >> $GITHUB_OUTPUT
24+
25+ validate :
26+ runs-on : ubuntu-latest
27+ needs :
28+ - prepare
29+ strategy :
30+ fail-fast : false
31+ matrix :
32+ target : ${{ fromJson(needs.prepare.outputs.targets) }}
33+ steps :
34+ -
35+ name : Checkout
36+ uses : actions/checkout@v3
37+ -
38+ name : Validate
39+ uses : docker/bake-action@v2
40+ with :
41+ targets : ${{ matrix.target }}
You can’t perform that action at this time.
0 commit comments