From 2fd9d1a6d061d0a31bc38cca12b9b21da5dcd5c7 Mon Sep 17 00:00:00 2001 From: Daniel Hollas Date: Tue, 23 Apr 2024 18:48:03 +0100 Subject: [PATCH] Push by digest --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5a033d5c..aedb2874 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,13 +49,15 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + # https://docs.docker.com/build/ci/github-actions/multi-platform/#with-bake - name: Build images 🏗️ id: build uses: docker/bake-action@v4 with: - push: true set: | + *.tags= *.platform=linux/${{ startsWith(inputs.runsOn, 'ubuntu') && 'amd64' || 'arm64' }} + *.output=type=image,push-by-digest=true,name-canonical=true,push=true files: | docker-bake.hcl build.json