dockerfile: enhanced to match netlify pipeline

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2022-05-13 21:24:26 +02:00
parent 1e1fdfce1c
commit ebd36f7081
3 changed files with 115 additions and 71 deletions

21
docker-bake.hcl Normal file
View File

@@ -0,0 +1,21 @@
variable "JEKYLL_ENV" {
default = "development"
}
group "default" {
targets = ["release"]
}
target "release" {
target = "release"
args = {
JEKYLL_ENV = JEKYLL_ENV
}
no-cache-filter = ["upstream-resources"]
output = ["./_site"]
}
target "vendor" {
target = "vendor"
output = ["."]
}