From 7ca3a1add210187345b22f3b0204c7dbbb550a52 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Fri, 10 Dec 2021 11:35:58 +0100 Subject: [PATCH] ci: only push regular and debug targets --- .github/workflows/check.yaml | 2 +- docker-bake.hcl | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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" {