3131 SETUP_BUILDX_VERSION : " edge"
3232 SETUP_BUILDKIT_IMAGE : " moby/buildkit:latest"
3333 SCOUT_VERSION : " 1.11.0"
34- REPO_SLUG : " docker/buildx-bin"
3534 DESTDIR : " ./bin"
3635 TEST_CACHE_SCOPE : " test"
3736 TESTFLAGS : " -v --parallel=6 --timeout=30m"
@@ -405,54 +404,23 @@ jobs:
405404 if-no-files-found : error
406405
407406 bin-image :
408- runs-on : ubuntu-24.04
407+ uses : crazy-max/.github/.github/workflows/bake-distribute-mp.yml@0acc187b016a2946786f201397bbcfb2c530ffc7
409408 needs :
410409 - test-integration
411410 - test-unit
412- if : ${{ github.event_name != 'pull_request' && github.repository == 'docker/buildx' }}
413- steps :
414- -
415- name : Set up QEMU
416- uses : docker/setup-qemu-action@v3
417- -
418- name : Set up Docker Buildx
419- uses : docker/setup-buildx-action@v3
420- with :
421- version : ${{ env.SETUP_BUILDX_VERSION }}
422- driver-opts : image=${{ env.SETUP_BUILDKIT_IMAGE }}
423- buildkitd-flags : --debug
424- -
425- name : Docker meta
426- id : meta
427- uses : docker/metadata-action@v5
428- with :
429- images : |
430- ${{ env.REPO_SLUG }}
431- tags : |
432- type=ref,event=branch
433- type=ref,event=pr
434- type=semver,pattern={{version}}
435- bake-target : meta-helper
436- -
437- name : Login to DockerHub
438- if : github.event_name != 'pull_request'
439- uses : docker/login-action@v3
440- with :
441- username : ${{ vars.DOCKERPUBLICBOT_USERNAME }}
442- password : ${{ secrets.DOCKERPUBLICBOT_WRITE_PAT }}
443- -
444- name : Build and push image
445- uses : docker/bake-action@v6
446- with :
447- files : |
448- ./docker-bake.hcl
449- cwd://${{ steps.meta.outputs.bake-file }}
450- targets : image-cross
451- push : ${{ github.event_name != 'pull_request' }}
452- sbom : true
453- set : |
454- *.cache-from=type=gha,scope=bin-image
455- *.cache-to=type=gha,scope=bin-image,mode=max
411+ with :
412+ target : image-cross
413+ push : ${{ github.event_name != 'pull_request' && github.repository == 'docker/buildx' }}
414+ cache : true
415+ meta-image : docker/buildx-bin
416+ meta-tags : |
417+ type=ref,event=branch
418+ type=ref,event=pr
419+ type=semver,pattern={{version}}
420+ meta-bake-target : meta-helper
421+ login-username : ${{ vars.DOCKERPUBLICBOT_USERNAME }}
422+ secrets :
423+ login-password : ${{ secrets.DOCKERPUBLICBOT_WRITE_PAT }}
456424
457425 scout :
458426 runs-on : ubuntu-24.04
@@ -478,7 +446,7 @@ jobs:
478446 with :
479447 version : ${{ env.SCOUT_VERSION }}
480448 format : sarif
481- image : registry://${{ env.REPO_SLUG }} :master
449+ image : registry://docker/buildx-bin :master
482450 -
483451 name : Upload SARIF report
484452 uses : github/codeql-action/upload-sarif@v3
0 commit comments