@@ -179,6 +179,55 @@ jobs:
179179 const builderOutputs = JSON.parse(core.getInput('builder-outputs'));
180180 core.info(JSON.stringify(builderOutputs, null, 2));
181181
182+ bake-dockerhub-stage :
183+ uses : ./.github/workflows/bake.yml
184+ permissions :
185+ contents : read
186+ id-token : write
187+ with :
188+ context : test
189+ output : image
190+ push : ${{ github.event_name != 'pull_request' }}
191+ sbom : true
192+ target : hello-cross
193+ meta-images : |
194+ registry-1-stage.docker.io/docker/github-builder-test
195+ meta-tags : |
196+ type=raw,value=bake-ghbuilder-${{ github.run_id }}
197+ secrets :
198+ registry-auths : |
199+ - registry: registry-1-stage.docker.io
200+ username: ${{ vars.DOCKERHUB_STAGE_USERNAME }}
201+ password: ${{ secrets.DOCKERHUB_STAGE_TOKEN }}
202+
203+ bake-dockerhub-stage-verify :
204+ uses : ./.github/workflows/verify.yml
205+ if : ${{ github.event_name != 'pull_request' }}
206+ needs :
207+ - bake-dockerhub-stage
208+ with :
209+ builder-outputs : ${{ toJSON(needs.bake-dockerhub-stage.outputs) }}
210+ secrets :
211+ registry-auths : |
212+ - registry: registry-1-stage.docker.io
213+ username: ${{ vars.DOCKERHUB_STAGE_USERNAME }}
214+ password: ${{ secrets.DOCKERHUB_STAGE_TOKEN }}
215+
216+ bake-dockerhub-stage-outputs :
217+ runs-on : ubuntu-24.04
218+ needs :
219+ - bake-dockerhub-stage
220+ steps :
221+ -
222+ name : Builder outputs
223+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
224+ env :
225+ INPUT_BUILDER-OUTPUTS : ${{ toJSON(needs.bake-dockerhub-stage.outputs) }}
226+ with :
227+ script : |
228+ const builderOutputs = JSON.parse(core.getInput('builder-outputs'));
229+ core.info(JSON.stringify(builderOutputs, null, 2));
230+
182231 bake-ghcr-and-aws :
183232 uses : ./.github/workflows/bake.yml
184233 permissions :
@@ -447,3 +496,38 @@ jobs:
447496 sbom : true
448497 sign : ${{ github.event_name != 'pull_request' }}
449498 target : hello-cross
499+
500+ bake-auth-scope :
501+ uses : ./.github/workflows/bake.yml
502+ permissions :
503+ contents : read
504+ id-token : write
505+ with :
506+ context : test
507+ output : image
508+ push : ${{ github.event_name != 'pull_request' }}
509+ sbom : true
510+ target : hello-cross
511+ meta-images : |
512+ registry-1-stage.docker.io/docker/github-builder-test
513+ meta-tags : |
514+ type=raw,value=bake-ghbuilder-scope-${{ github.run_id }}
515+ secrets :
516+ registry-auths : |
517+ - registry: registry-1-stage.docker.io
518+ username: ${{ vars.DOCKERHUB_STAGE_USERNAME }}
519+ password: ${{ secrets.DOCKERHUB_STAGE_TOKEN }}
520+ scope: '@push'
521+
522+ bake-auth-scope-verify :
523+ uses : ./.github/workflows/verify.yml
524+ if : ${{ github.event_name != 'pull_request' }}
525+ needs :
526+ - bake-auth-scope
527+ with :
528+ builder-outputs : ${{ toJSON(needs.bake-auth-scope.outputs) }}
529+ secrets :
530+ registry-auths : |
531+ - registry: registry-1-stage.docker.io
532+ username: ${{ vars.DOCKERHUB_STAGE_USERNAME }}
533+ password: ${{ secrets.DOCKERHUB_STAGE_TOKEN }}
0 commit comments