2021-03-30 05:41:46 +08:00
|
|
|
variable "NODE_VERSION" {
|
|
|
|
default = "12"
|
|
|
|
}
|
|
|
|
|
|
|
|
target "node-version" {
|
|
|
|
args = {
|
|
|
|
NODE_VERSION = NODE_VERSION
|
|
|
|
}
|
2021-03-16 06:35:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
group "default" {
|
|
|
|
targets = ["build"]
|
|
|
|
}
|
|
|
|
|
|
|
|
group "pre-checkin" {
|
2021-03-30 05:41:46 +08:00
|
|
|
targets = ["vendor-update", "format", "build"]
|
2021-03-16 06:35:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
group "validate" {
|
2021-05-15 05:25:37 +08:00
|
|
|
targets = ["vendor-validate", "format-validate", "build-validate"]
|
|
|
|
}
|
|
|
|
|
|
|
|
target "vendor-update" {
|
|
|
|
inherits = ["node-version"]
|
|
|
|
dockerfile = "./hack/build.Dockerfile"
|
|
|
|
target = "vendor-update"
|
|
|
|
output = ["."]
|
|
|
|
}
|
|
|
|
|
|
|
|
target "vendor-validate" {
|
|
|
|
inherits = ["node-version"]
|
|
|
|
dockerfile = "./hack/build.Dockerfile"
|
|
|
|
target = "vendor-validate"
|
2021-03-16 06:35:50 +08:00
|
|
|
}
|
|
|
|
|
2021-03-30 05:41:46 +08:00
|
|
|
target "build" {
|
|
|
|
inherits = ["node-version"]
|
|
|
|
dockerfile = "./hack/build.Dockerfile"
|
|
|
|
target = "build-update"
|
2021-03-16 06:35:50 +08:00
|
|
|
output = ["."]
|
|
|
|
}
|
|
|
|
|
2021-03-30 05:41:46 +08:00
|
|
|
target "build-validate" {
|
|
|
|
inherits = ["node-version"]
|
|
|
|
dockerfile = "./hack/build.Dockerfile"
|
|
|
|
target = "build-validate"
|
2021-03-16 06:35:50 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
target "format" {
|
2021-03-30 05:41:46 +08:00
|
|
|
inherits = ["node-version"]
|
|
|
|
dockerfile = "./hack/build.Dockerfile"
|
|
|
|
target = "format-update"
|
2021-03-16 06:35:50 +08:00
|
|
|
output = ["."]
|
|
|
|
}
|
|
|
|
|
2021-03-30 05:41:46 +08:00
|
|
|
target "format-validate" {
|
|
|
|
inherits = ["node-version"]
|
|
|
|
dockerfile = "./hack/build.Dockerfile"
|
|
|
|
target = "format-validate"
|
2021-03-16 06:35:50 +08:00
|
|
|
}
|