@@ -15,8 +15,30 @@ permissions:
1515 contents : read # to fetch code (actions/checkout)
1616
1717jobs :
18+ releaser :
19+ runs-on : ubuntu-24.04
20+ steps :
21+ -
22+ name : Checkout
23+ uses : actions/checkout@v4
24+ -
25+ name : Set up Docker Buildx
26+ uses : docker/setup-buildx-action@v3
27+ -
28+ name : Build
29+ uses : docker/bake-action@v5
30+ with :
31+ files : |
32+ docker-bake.hcl
33+ targets : releaser-build
34+ set : |
35+ *.cache-from=type=gha,scope=releaser
36+ *.cache-to=type=gha,scope=releaser,mode=max
37+
1838 build :
1939 runs-on : ubuntu-24.04
40+ needs :
41+ - releaser
2042 steps :
2143 -
2244 name : Checkout
3456 set : |
3557 *.cache-from=type=gha,scope=build
3658 *.cache-to=type=gha,scope=build,mode=max
59+ -
60+ name : Check Cloudfront config
61+ uses : docker/bake-action@v5
62+ with :
63+ targets : aws-cloudfront-update
64+ env :
65+ DRY_RUN : true
66+ AWS_REGION : us-east-1
67+ AWS_CLOUDFRONT_ID : 0123456789ABCD
68+ AWS_LAMBDA_FUNCTION : DockerDocsRedirectFunction-dummy
3769
3870 vale :
3971 if : ${{ github.event_name == 'pull_request' }}
@@ -76,25 +108,3 @@ jobs:
76108 *.cache-to=type=gha,scope=validate-${{ matrix.target }},mode=max
77109 *.cache-from=type=gha,scope=validate-${{ matrix.target }}
78110 *.cache-from=type=gha,scope=build
79-
80- # build-releaser builds the _releaser used for AWS deployment in publish workflow.
81- # It's just to be sure it builds correctly.
82- build-releaser :
83- runs-on : ubuntu-24.04
84- steps :
85- -
86- name : Checkout
87- uses : actions/checkout@v4
88- -
89- name : Set up Docker Buildx
90- uses : docker/setup-buildx-action@v3
91- -
92- name : Build
93- uses : docker/bake-action@v5
94- with :
95- files : |
96- docker-bake.hcl
97- targets : releaser-build
98- set : |
99- *.cache-from=type=gha,scope=releaser
100- *.cache-to=type=gha,scope=releaser,mode=max
0 commit comments