2025-01-08 13:47:36 +01:00
|
|
|
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" {
|
2024-04-27 02:49:48 +02:00
|
|
|
targets = ["vendor", "format", "build"]
|
2020-12-19 03:21:31 +01:00
|
|
|
}
|
|
|
|
|
|
2021-03-31 15:23:31 +02:00
|
|
|
group "validate" {
|
2022-03-21 11:28:57 +01:00
|
|
|
targets = ["lint", "build-validate", "vendor-validate"]
|
2020-12-19 03:21:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
target "build" {
|
2025-01-08 13:47:36 +01:00
|
|
|
inherits = ["_common"]
|
2022-03-21 11:28:57 +01:00
|
|
|
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" {
|
2025-01-08 13:47:36 +01:00
|
|
|
inherits = ["_common"]
|
2022-03-21 11:28:57 +01:00
|
|
|
dockerfile = "dev.Dockerfile"
|
2021-03-31 15:23:31 +02:00
|
|
|
target = "build-validate"
|
2021-11-16 21:15:04 +01:00
|
|
|
output = ["type=cacheonly"]
|
2020-12-19 03:21:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
target "format" {
|
2025-01-08 13:47:36 +01:00
|
|
|
inherits = ["_common"]
|
2022-03-21 11:28:57 +01:00
|
|
|
dockerfile = "dev.Dockerfile"
|
2021-03-31 15:23:31 +02:00
|
|
|
target = "format-update"
|
2020-12-19 03:21:31 +01:00
|
|
|
output = ["."]
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-21 11:28:57 +01:00
|
|
|
target "lint" {
|
2025-01-08 13:47:36 +01:00
|
|
|
inherits = ["_common"]
|
2022-03-21 11:28:57 +01:00
|
|
|
dockerfile = "dev.Dockerfile"
|
|
|
|
|
target = "lint"
|
2021-11-16 21:15:04 +01:00
|
|
|
output = ["type=cacheonly"]
|
2021-03-31 15:23:31 +02:00
|
|
|
}
|
|
|
|
|
|
2024-04-27 02:49:48 +02:00
|
|
|
target "vendor" {
|
2025-01-08 13:47:36 +01:00
|
|
|
inherits = ["_common"]
|
2022-03-21 11:28:57 +01:00
|
|
|
dockerfile = "dev.Dockerfile"
|
2021-11-16 21:15:04 +01:00
|
|
|
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" {
|
2025-01-08 13:47:36 +01:00
|
|
|
inherits = ["_common"]
|
2022-03-21 11:28:57 +01:00
|
|
|
dockerfile = "dev.Dockerfile"
|
2021-11-16 21:15:04 +01:00
|
|
|
target = "vendor-validate"
|
|
|
|
|
output = ["type=cacheonly"]
|
2020-12-19 03:21:31 +01:00
|
|
|
}
|
|
|
|
|
|
2021-03-31 15:23:31 +02:00
|
|
|
target "test" {
|
2025-01-08 13:47:36 +01:00
|
|
|
inherits = ["_common"]
|
2022-03-21 11:28:57 +01:00
|
|
|
dockerfile = "dev.Dockerfile"
|
2021-03-31 15:23:31 +02:00
|
|
|
target = "test-coverage"
|
|
|
|
|
output = ["./coverage"]
|
2020-12-19 03:21:31 +01:00
|
|
|
}
|