update docker-bake file to build without httpd

This commit is contained in:
Ronald A. Richardson
2024-01-31 17:40:33 +08:00
parent f2058e0d58
commit 575e4e0952

View File

@@ -5,7 +5,7 @@ variable "CACHE" { default = "" }
variable "GCP" { default = false }
group "default" {
targets = ["app", "app-httpd"]
targets = ["app"]
}
target "app" {
@@ -35,16 +35,3 @@ target "app" {
cache-from = notequal("", CACHE) ? ["${CACHE}"] : []
cache-to = notequal("", CACHE) ? ["${CACHE},mode=max,ignore-error=true"] : []
}
target "app-httpd" {
context = "./"
dockerfile = "docker/httpd/Dockerfile"
platforms = [
"linux/amd64",
]
tags = notequal("", REGISTRY) ? formatlist(
GCP ? "${REGISTRY}/app-httpd:%s" : "${REGISTRY}:app-httpd-%s",
compact(["latest", VERSION])
) : []
}