Build app-httpd and socketcluster images

This commit is contained in:
Eugene Dementyev
2023-07-15 23:00:05 +12:00
parent b5d6ba2114
commit e61ace5bcb

View File

@@ -4,7 +4,7 @@ variable "tags" { default = "[]" }
target "docker-metadata-action" {}
group "default" {
targets = ["app"]
targets = ["app", "app-httpd", "socketcluster"]
}
target "app" {
@@ -39,3 +39,32 @@ target "app" {
concat(["latest"], jsondecode(replace(tags, "willbereplaced:", "")))
) : []
}
target "app-httpd" {
inherits = ["docker-metadata-action"]
context = "./"
dockerfile = "docker/httpd/Dockerfile"
platforms = [
"linux/amd64",
]
tags = notequal("", REGISTRY) ? formatlist(
"${REGISTRY}/fleetbase-app-httpd:%s",
concat(["latest"], jsondecode(replace(tags, "willbereplaced:", "")))
) : []
}
target "socketcluster" {
inherits = ["docker-metadata-action"]
context = "./"
dockerfile = "socket/Dockerfile"
platforms = [
"linux/amd64",
]
tags = notequal("", REGISTRY) ? formatlist(
"${REGISTRY}/fleetbase-socketcluster:%s",
concat(["latest"], jsondecode(replace(tags, "willbereplaced:", "")))
) : []
}