Merge pull request #282 from crazy-max/update-git-keep-dir
Some checks failed
ci-subaction / list-targets-group (push) Failing after 2s
ci-subaction / list-targets-group-matrix (push) Failing after 2s
ci-subaction / list-targets-multi-files (push) Failing after 2s
test / test (push) Failing after 2s
validate / prepare (push) Failing after 6s
validate / validate (push) Has been skipped

chore: put context keep dir within the bake definition
This commit is contained in:
CrazyMax
2025-01-08 13:49:57 +01:00
committed by GitHub
2 changed files with 13 additions and 2 deletions

View File

@@ -41,5 +41,3 @@ jobs:
uses: docker/bake-action@v6
with:
targets: ${{ matrix.target }}
set: |
*.args.BUILDKIT_CONTEXT_KEEP_GIT_DIR=1

View File

@@ -1,3 +1,9 @@
target "_common" {
args = {
BUILDKIT_CONTEXT_KEEP_GIT_DIR = 1
}
}
group "default" {
targets = ["build"]
}
@@ -11,42 +17,49 @@ group "validate" {
}
target "build" {
inherits = ["_common"]
dockerfile = "dev.Dockerfile"
target = "build-update"
output = ["."]
}
target "build-validate" {
inherits = ["_common"]
dockerfile = "dev.Dockerfile"
target = "build-validate"
output = ["type=cacheonly"]
}
target "format" {
inherits = ["_common"]
dockerfile = "dev.Dockerfile"
target = "format-update"
output = ["."]
}
target "lint" {
inherits = ["_common"]
dockerfile = "dev.Dockerfile"
target = "lint"
output = ["type=cacheonly"]
}
target "vendor" {
inherits = ["_common"]
dockerfile = "dev.Dockerfile"
target = "vendor-update"
output = ["."]
}
target "vendor-validate" {
inherits = ["_common"]
dockerfile = "dev.Dockerfile"
target = "vendor-validate"
output = ["type=cacheonly"]
}
target "test" {
inherits = ["_common"]
dockerfile = "dev.Dockerfile"
target = "test-coverage"
output = ["./coverage"]