ci: only push regular and debug targets

This commit is contained in:
Quentin Gliech
2021-12-10 11:35:58 +01:00
parent ee80e67133
commit 7ca3a1add2
2 changed files with 6 additions and 3 deletions

View File

@@ -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' }}

View File

@@ -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" {