metadata-action/docker-bake.hcl

71 lines
1.3 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"
output = ["type=cacheonly"]
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"
output = ["type=cacheonly"]
}
target "vendor-update" {
inherits = ["node-version"]
dockerfile = "./hack/build.Dockerfile"
target = "vendor-update"
output = ["."]
2020-10-25 02:25:23 +01:00
}
target "vendor-validate" {
inherits = ["node-version"]
dockerfile = "./hack/build.Dockerfile"
target = "vendor-validate"
output = ["type=cacheonly"]
2020-10-25 02:25:23 +01:00
}
target "test" {
inherits = ["node-version"]
dockerfile = "./hack/build.Dockerfile"
target = "test-coverage"
output = ["./coverage"]
2020-10-25 02:25:23 +01:00
}