diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 356aad04e..ac2e2c531 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -359,4 +359,4 @@ jobs: uses: docker/bake-action@v1 with: targets: gha - push: ${{ github.event_name != 'pull_request' }} + set: gha-push.output=type=image,push=${{ github.event_name != 'pull_request' }} diff --git a/docker-bake.hcl b/docker-bake.hcl index d96a1dcfd..fb6c8940f 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -35,12 +35,15 @@ target "gha-base" { cache-to = ["type=gha,mode=max"] } +// This is filled by GitHub Actions +target "gha-push" {} + target "gha-regular" { - inherits = ["gha-base", "docker-metadata-action"] + inherits = ["gha-base", "gha-push", "docker-metadata-action"] } target "gha-debug" { - inherits = ["gha-base", "debug", "docker-metadata-action-debug"] + inherits = ["gha-base", "gha-push", "debug", "docker-metadata-action-debug"] } target "gha-test" {