2021-03-29 19:18:19 +08:00
|
|
|
group "default" {
|
|
|
|
targets = ["build"]
|
2020-12-19 10:53:36 +08:00
|
|
|
}
|
|
|
|
|
2021-03-29 19:18:19 +08:00
|
|
|
group "pre-checkin" {
|
2024-05-07 16:45:56 +08:00
|
|
|
targets = ["vendor", "format", "build"]
|
2020-10-25 09:25:23 +08:00
|
|
|
}
|
|
|
|
|
2021-03-29 19:18:19 +08:00
|
|
|
group "validate" {
|
2022-03-23 04:09:00 +08:00
|
|
|
targets = ["lint", "build-validate", "vendor-validate"]
|
2020-10-25 09:25:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
target "build" {
|
2022-03-23 04:09:00 +08:00
|
|
|
dockerfile = "dev.Dockerfile"
|
2021-03-29 19:18:19 +08:00
|
|
|
target = "build-update"
|
2020-10-25 09:25:23 +08:00
|
|
|
output = ["."]
|
|
|
|
}
|
|
|
|
|
2021-03-29 19:18:19 +08:00
|
|
|
target "build-validate" {
|
2022-03-23 04:09:00 +08:00
|
|
|
dockerfile = "dev.Dockerfile"
|
2021-03-29 19:18:19 +08:00
|
|
|
target = "build-validate"
|
2021-11-17 04:51:18 +08:00
|
|
|
output = ["type=cacheonly"]
|
2020-10-25 09:25:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
target "format" {
|
2022-03-23 04:09:00 +08:00
|
|
|
dockerfile = "dev.Dockerfile"
|
2021-03-29 19:18:19 +08:00
|
|
|
target = "format-update"
|
2020-10-25 09:25:23 +08:00
|
|
|
output = ["."]
|
|
|
|
}
|
|
|
|
|
2022-03-23 04:09:00 +08:00
|
|
|
target "lint" {
|
|
|
|
dockerfile = "dev.Dockerfile"
|
|
|
|
target = "lint"
|
2021-11-17 04:51:18 +08:00
|
|
|
output = ["type=cacheonly"]
|
2021-03-29 19:18:19 +08:00
|
|
|
}
|
|
|
|
|
2024-05-07 16:45:56 +08:00
|
|
|
target "vendor" {
|
2022-03-23 04:09:00 +08:00
|
|
|
dockerfile = "dev.Dockerfile"
|
2021-11-17 04:51:18 +08:00
|
|
|
target = "vendor-update"
|
2021-03-29 19:18:19 +08:00
|
|
|
output = ["."]
|
2020-10-25 09:25:23 +08:00
|
|
|
}
|
|
|
|
|
2021-03-29 19:18:19 +08:00
|
|
|
target "vendor-validate" {
|
2022-03-23 04:09:00 +08:00
|
|
|
dockerfile = "dev.Dockerfile"
|
2021-11-17 04:51:18 +08:00
|
|
|
target = "vendor-validate"
|
|
|
|
output = ["type=cacheonly"]
|
2020-10-25 09:25:23 +08:00
|
|
|
}
|
|
|
|
|
2021-03-29 19:18:19 +08:00
|
|
|
target "test" {
|
2022-03-23 04:09:00 +08:00
|
|
|
dockerfile = "dev.Dockerfile"
|
2021-03-29 19:18:19 +08:00
|
|
|
target = "test-coverage"
|
|
|
|
output = ["./coverage"]
|
2020-10-25 09:25:23 +08:00
|
|
|
}
|