@@ -38,24 +38,20 @@ jobs:
3838 targets : releaser-build
3939
4040 build :
41+ uses : docker/github-builder-experimental/.github/workflows/bake.yml@main
42+ permissions :
43+ contents : read
44+ packages : write
45+ id-token : write
46+ with :
47+ output : local
48+ target : release
49+
50+ check-cloudfront :
4151 runs-on : ubuntu-24.04
4252 needs :
4353 - releaser
4454 steps :
45- -
46- name : Checkout
47- uses : actions/checkout@v5
48- -
49- name : Set up Docker Buildx
50- uses : docker/setup-buildx-action@v3
51- -
52- name : Build
53- uses : docker/bake-action@v6
54- with :
55- source : .
56- files : |
57- docker-bake.hcl
58- targets : release
5955 -
6056 name : Check Cloudfront config
6157 uses : docker/bake-action@v6
@@ -69,34 +65,27 @@ jobs:
6965 AWS_LAMBDA_FUNCTION : DockerDocsRedirectFunction-dummy
7066
7167 validate :
68+ uses : docker/github-builder-experimental/.github/workflows/bake.yml@main
69+ permissions :
70+ contents : read
71+ packages : write
72+ id-token : write
73+ with :
74+ output : local
75+ target : validate
76+
77+ check-vale :
7278 runs-on : ubuntu-24.04
73- strategy :
74- fail-fast : false
75- matrix :
76- target :
77- - lint
78- - vale
79- - test
80- - unused-media
81- - test-go-redirects
82- - dockerfile-lint
83- - path-warnings
84- - validate-vendor
79+ needs :
80+ - validate
8581 steps :
8682 -
87- name : Checkout
88- uses : actions/checkout@v5
89- -
90- name : Set up Docker Buildx
91- uses : docker/setup-buildx-action@v3
92- -
93- name : Validate
94- uses : docker/bake-action@v6
83+ name : Download artifacts
84+ uses : actions/download-artifact@v6
9585 with :
96- source : .
97- files : |
98- docker-bake.hcl
99- targets : ${{ matrix.target }}
86+ path : /tmp/validate-output
87+ pattern : ${{ needs.validate.outputs.docker-github-builder-assets }}*
88+ merge-multiple : true
10089 -
10190 name : Install reviewdog
10291 if : ${{ matrix.target == 'vale' && github.event_name == 'pull_request' }}
10594 name : Run reviewdog for vale
10695 if : ${{ matrix.target == 'vale' && github.event_name == 'pull_request' }}
10796 run : |
108- cat ./tmp/vale.out | reviewdog -f=rdjsonl -name=vale -reporter=github-pr-annotations -fail-on-error=false -filter-mode=added -level=info -fail-level=warning
97+ cat ./tmp/validate-output/ vale.out | reviewdog -f=rdjsonl -name=vale -reporter=github-pr-annotations -fail-on-error=false -filter-mode=added -level=info -fail-level=warning
10998 env :
11099 REVIEWDOG_GITHUB_API_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments