Adrien Delorme fb337f8867
hcl work on only/except (#9454)
* HCL2: allow to skip a named build block too

* test that excepting a build block works

* test only on a named build block

* add/update docs
2020-06-23 10:53:16 +02:00

29 lines
362 B
HCL

source "file" "chocolate" {
content = "chocolate"
target = "chocolate.txt"
}
source "file" "vanilla" {
content = "vanilla"
target = "vanilla.txt"
}
source "file" "cherry" {
content = "cherry"
target = "cherry.txt"
}
build {
source "file.cherry" {
}
}
build {
name = "my_build"
sources = [
"file.chocolate",
"file.vanilla",
]
}