Merge pull request #70 from ekini/feature/build_other_images

This commit is contained in:
Ron
2023-07-15 19:41:19 +08:00
committed by GitHub
2 changed files with 3 additions and 21 deletions

View File

@@ -4,7 +4,7 @@ variable "tags" { default = "[]" }
target "docker-metadata-action" {}
group "default" {
targets = ["app", "app-httpd", "socketcluster"]
targets = ["app", "app-httpd"]
}
target "app" {
@@ -54,17 +54,3 @@ target "app-httpd" {
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:", "")))
) : []
}

View File

@@ -15,11 +15,7 @@ services:
MYSQL_DATABASE: "fleetbase"
socket:
build:
context: .
dockerfile: socket/Dockerfile
args:
ENVIRONMENT: dev
image: socketcluster/socketcluster:v17.4.0
ports:
- "38000:8000"
environment:
@@ -58,4 +54,4 @@ services:
LOG_CHANNEL: daily
depends_on:
- database
- cache
- cache