mirror of
https://github.com/onyx-dot-app/onyx.git
synced 2026-10-23 11:53:08 -05:00
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
53 lines
1.0 KiB
HCL
53 lines
1.0 KiB
HCL
group "default" {
|
|
targets = ["backend", "model-server"]
|
|
}
|
|
|
|
variable "BACKEND_REPOSITORY" {
|
|
default = "onyxdotapp/onyx-backend"
|
|
}
|
|
|
|
variable "MODEL_SERVER_REPOSITORY" {
|
|
default = "onyxdotapp/onyx-model-server"
|
|
}
|
|
|
|
variable "INTEGRATION_REPOSITORY" {
|
|
default = "onyxdotapp/onyx-integration"
|
|
}
|
|
|
|
variable "TAG" {
|
|
default = "latest"
|
|
}
|
|
|
|
target "backend" {
|
|
context = "."
|
|
dockerfile = "Dockerfile"
|
|
|
|
cache-from = ["type=registry,ref=${BACKEND_REPOSITORY}:latest"]
|
|
cache-to = ["type=inline"]
|
|
|
|
tags = ["${BACKEND_REPOSITORY}:${TAG}"]
|
|
}
|
|
|
|
target "model-server" {
|
|
context = "."
|
|
|
|
dockerfile = "Dockerfile.model_server"
|
|
|
|
cache-from = ["type=registry,ref=${MODEL_SERVER_REPOSITORY}:latest"]
|
|
cache-to = ["type=inline"]
|
|
|
|
tags = ["${MODEL_SERVER_REPOSITORY}:${TAG}"]
|
|
}
|
|
|
|
target "integration" {
|
|
context = "."
|
|
dockerfile = "tests/integration/Dockerfile"
|
|
|
|
// Provide the base image via build context from the backend target
|
|
contexts = {
|
|
base = "target:backend"
|
|
}
|
|
|
|
tags = ["${INTEGRATION_REPOSITORY}:${TAG}"]
|
|
}
|