Files
bake-action/docker-bake.hcl

67 lines
1.1 KiB
HCL
Raw Normal View History

target "_common" {
args = {
BUILDKIT_CONTEXT_KEEP_GIT_DIR = 1
}
}
2021-03-31 15:23:31 +02:00
group "default" {
targets = ["build"]
2020-12-19 03:21:31 +01:00
}
2021-03-31 15:23:31 +02:00
group "pre-checkin" {
targets = ["vendor", "format", "build"]
2020-12-19 03:21:31 +01:00
}
2021-03-31 15:23:31 +02:00
group "validate" {
targets = ["lint", "build-validate", "vendor-validate"]
2020-12-19 03:21:31 +01:00
}
target "build" {
inherits = ["_common"]
dockerfile = "dev.Dockerfile"
2021-03-31 15:23:31 +02:00
target = "build-update"
2020-12-19 03:21:31 +01:00
output = ["."]
}
2021-03-31 15:23:31 +02:00
target "build-validate" {
inherits = ["_common"]
dockerfile = "dev.Dockerfile"
2021-03-31 15:23:31 +02:00
target = "build-validate"
output = ["type=cacheonly"]
2020-12-19 03:21:31 +01:00
}
target "format" {
inherits = ["_common"]
dockerfile = "dev.Dockerfile"
2021-03-31 15:23:31 +02:00
target = "format-update"
2020-12-19 03:21:31 +01:00
output = ["."]
}
target "lint" {
inherits = ["_common"]
dockerfile = "dev.Dockerfile"
target = "lint"
output = ["type=cacheonly"]
2021-03-31 15:23:31 +02:00
}
target "vendor" {
inherits = ["_common"]
dockerfile = "dev.Dockerfile"
target = "vendor-update"
2021-03-31 15:23:31 +02:00
output = ["."]
2020-12-19 03:21:31 +01:00
}
2021-03-31 15:23:31 +02:00
target "vendor-validate" {
inherits = ["_common"]
dockerfile = "dev.Dockerfile"
target = "vendor-validate"
output = ["type=cacheonly"]
2020-12-19 03:21:31 +01:00
}
2021-03-31 15:23:31 +02:00
target "test" {
inherits = ["_common"]
dockerfile = "dev.Dockerfile"
2021-03-31 15:23:31 +02:00
target = "test-coverage"
output = ["./coverage"]
2020-12-19 03:21:31 +01:00
}