2020-10-25 02:25:23 +01:00
|
|
|
group "default" {
|
|
|
|
targets = ["build"]
|
|
|
|
}
|
|
|
|
|
|
|
|
group "pre-checkin" {
|
|
|
|
targets = ["update-yarn", "format", "build"]
|
|
|
|
}
|
|
|
|
|
|
|
|
group "validate" {
|
2020-12-19 03:53:36 +01:00
|
|
|
targets = ["validate-format", "validate-build", "validate-yarn"]
|
|
|
|
}
|
|
|
|
|
|
|
|
target "dockerfile" {
|
|
|
|
dockerfile = "Dockerfile.dev"
|
2020-10-25 02:25:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
target "update-yarn" {
|
2020-12-19 03:53:36 +01:00
|
|
|
inherits = ["dockerfile"]
|
2020-10-25 02:25:23 +01:00
|
|
|
target = "update-yarn"
|
|
|
|
output = ["."]
|
|
|
|
}
|
|
|
|
|
|
|
|
target "build" {
|
2020-12-19 03:53:36 +01:00
|
|
|
inherits = ["dockerfile"]
|
2020-10-25 02:25:23 +01:00
|
|
|
target = "dist"
|
|
|
|
output = ["."]
|
|
|
|
}
|
|
|
|
|
|
|
|
target "test" {
|
2020-12-19 03:53:36 +01:00
|
|
|
inherits = ["dockerfile"]
|
|
|
|
target = "test-coverage"
|
|
|
|
output = ["."]
|
2020-10-25 02:25:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
target "format" {
|
2020-12-19 03:53:36 +01:00
|
|
|
inherits = ["dockerfile"]
|
2020-10-25 02:25:23 +01:00
|
|
|
target = "format"
|
|
|
|
output = ["."]
|
|
|
|
}
|
|
|
|
|
|
|
|
target "validate-format" {
|
2020-12-19 03:53:36 +01:00
|
|
|
inherits = ["dockerfile"]
|
2020-10-25 02:25:23 +01:00
|
|
|
target = "validate-format"
|
|
|
|
}
|
|
|
|
|
|
|
|
target "validate-build" {
|
2020-12-19 03:53:36 +01:00
|
|
|
inherits = ["dockerfile"]
|
2020-10-25 02:25:23 +01:00
|
|
|
target = "validate-build"
|
|
|
|
}
|
|
|
|
|
|
|
|
target "validate-yarn" {
|
2020-12-19 03:53:36 +01:00
|
|
|
inherits = ["dockerfile"]
|
|
|
|
target = "validate-yarn"
|
2020-10-25 02:25:23 +01:00
|
|
|
}
|