metadata-action/docker-bake.hcl

68 lines
1.2 KiB
HCL
Raw Normal View History

variable "NODE_VERSION" {
default = "12"
2020-10-25 02:25:23 +01:00
}
target "node-version" {
args = {
NODE_VERSION = NODE_VERSION
}
2020-10-25 02:25:23 +01:00
}
group "default" {
targets = ["build"]
}
group "pre-checkin" {
targets = ["vendor-update", "format", "build"]
2020-10-25 02:25:23 +01:00
}
group "validate" {
targets = ["format-validate", "build-validate", "vendor-validate"]
2020-10-25 02:25:23 +01:00
}
target "build" {
inherits = ["node-version"]
dockerfile = "./hack/build.Dockerfile"
target = "build-update"
2020-10-25 02:25:23 +01:00
output = ["."]
}
target "build-validate" {
inherits = ["node-version"]
dockerfile = "./hack/build.Dockerfile"
target = "build-validate"
2020-10-25 02:25:23 +01:00
}
target "format" {
inherits = ["node-version"]
dockerfile = "./hack/build.Dockerfile"
target = "format-update"
2020-10-25 02:25:23 +01:00
output = ["."]
}
target "format-validate" {
inherits = ["node-version"]
dockerfile = "./hack/build.Dockerfile"
target = "format-validate"
}
target "vendor-update" {
inherits = ["node-version"]
dockerfile = "./hack/vendor.Dockerfile"
target = "update"
output = ["."]
2020-10-25 02:25:23 +01:00
}
target "vendor-validate" {
inherits = ["node-version"]
dockerfile = "./hack/vendor.Dockerfile"
target = "validate"
2020-10-25 02:25:23 +01:00
}
target "test" {
inherits = ["node-version"]
dockerfile = "./hack/test.Dockerfile"
target = "test-coverage"
output = ["./coverage"]
2020-10-25 02:25:23 +01:00
}