2021-03-31 18:34:44 +02:00
|
|
|
group "default" {
|
|
|
|
targets = ["build"]
|
|
|
|
}
|
|
|
|
|
|
|
|
group "pre-checkin" {
|
|
|
|
targets = ["vendor-update", "format", "build"]
|
|
|
|
}
|
|
|
|
|
|
|
|
group "validate" {
|
|
|
|
targets = ["format-validate", "build-validate", "vendor-validate"]
|
|
|
|
}
|
|
|
|
|
|
|
|
target "build" {
|
2022-03-01 20:51:18 +01:00
|
|
|
dockerfile = "dev.Dockerfile"
|
2021-03-31 18:34:44 +02:00
|
|
|
target = "build-update"
|
|
|
|
output = ["."]
|
|
|
|
}
|
|
|
|
|
|
|
|
target "build-validate" {
|
2022-03-01 20:51:18 +01:00
|
|
|
dockerfile = "dev.Dockerfile"
|
2021-03-31 18:34:44 +02:00
|
|
|
target = "build-validate"
|
2021-11-16 21:38:44 +01:00
|
|
|
output = ["type=cacheonly"]
|
2021-03-31 18:34:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
target "format" {
|
2022-03-01 20:51:18 +01:00
|
|
|
dockerfile = "dev.Dockerfile"
|
2021-03-31 18:34:44 +02:00
|
|
|
target = "format-update"
|
|
|
|
output = ["."]
|
|
|
|
}
|
|
|
|
|
|
|
|
target "format-validate" {
|
2022-03-01 20:51:18 +01:00
|
|
|
dockerfile = "dev.Dockerfile"
|
2021-03-31 18:34:44 +02:00
|
|
|
target = "format-validate"
|
2021-11-16 21:38:44 +01:00
|
|
|
output = ["type=cacheonly"]
|
2021-03-31 18:34:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
target "vendor-update" {
|
2022-03-01 20:51:18 +01:00
|
|
|
dockerfile = "dev.Dockerfile"
|
2021-11-16 21:38:44 +01:00
|
|
|
target = "vendor-update"
|
2021-03-31 18:34:44 +02:00
|
|
|
output = ["."]
|
|
|
|
}
|
|
|
|
|
|
|
|
target "vendor-validate" {
|
2022-03-01 20:51:18 +01:00
|
|
|
dockerfile = "dev.Dockerfile"
|
2021-11-16 21:38:44 +01:00
|
|
|
target = "vendor-validate"
|
|
|
|
output = ["type=cacheonly"]
|
2021-03-31 18:34:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
target "test" {
|
2022-03-01 20:51:18 +01:00
|
|
|
dockerfile = "dev.Dockerfile"
|
2021-03-31 18:34:44 +02:00
|
|
|
target = "test-coverage"
|
|
|
|
output = ["./coverage"]
|
|
|
|
}
|