@@ -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 :
@@ -461,3 +510,38 @@ jobs:
461510 target : go
462511 vars : |
463512 XX_VERSION=1.9.0
513+
514+ bake-auth-scope :
515+ uses : ./.github/workflows/bake.yml
516+ permissions :
517+ contents : read
518+ id-token : write
519+ with :
520+ context : test
521+ output : image
522+ push : ${{ github.event_name != 'pull_request' }}
523+ sbom : true
524+ target : hello-cross
525+ meta-images : |
526+ registry-1-stage.docker.io/docker/github-builder-test
527+ meta-tags : |
528+ type=raw,value=bake-ghbuilder-scope-${{ github.run_id }}
529+ secrets :
530+ registry-auths : |
531+ - registry: registry-1-stage.docker.io
532+ username: ${{ vars.DOCKERHUB_STAGE_USERNAME }}
533+ password: ${{ secrets.DOCKERHUB_STAGE_TOKEN }}
534+ scope: '@push'
535+
536+ bake-auth-scope-verify :
537+ uses : ./.github/workflows/verify.yml
538+ if : ${{ github.event_name != 'pull_request' }}
539+ needs :
540+ - bake-auth-scope
541+ with :
542+ builder-outputs : ${{ toJSON(needs.bake-auth-scope.outputs) }}
543+ secrets :
544+ registry-auths : |
545+ - registry: registry-1-stage.docker.io
546+ username: ${{ vars.DOCKERHUB_STAGE_USERNAME }}
547+ password: ${{ secrets.DOCKERHUB_STAGE_TOKEN }}
0 commit comments