mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-07 19:22:14 +09:00
34 lines
1.0 KiB
HCL
34 lines
1.0 KiB
HCL
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
variable "BUILD_VERSION" { default = "" }
|
|
variable "PUBLIC_ASSET_BASE_URL" { default = "" }
|
|
variable "FLUXER_APP_PROXY_TIME_FREEZE_ENABLED" { default = "true" }
|
|
variable "IMAGE_REPO" { default = "" }
|
|
variable "CACHE_FROM" { default = "" }
|
|
variable "CACHE_TO" { default = "" }
|
|
|
|
group "default" {
|
|
targets = ["app-proxy", "app-dist"]
|
|
}
|
|
|
|
target "app-proxy" {
|
|
dockerfile = "fluxer_app_proxy/Dockerfile"
|
|
context = "."
|
|
platforms = ["linux/amd64"]
|
|
tags = IMAGE_REPO != "" ? ["${IMAGE_REPO}:${BUILD_VERSION}"] : []
|
|
output = ["type=registry"]
|
|
cache-from = CACHE_FROM != "" ? [CACHE_FROM] : []
|
|
cache-to = CACHE_TO != "" ? [CACHE_TO] : []
|
|
args = {
|
|
BUILD_VERSION = BUILD_VERSION
|
|
PUBLIC_ASSET_BASE_URL = PUBLIC_ASSET_BASE_URL
|
|
FLUXER_APP_PROXY_TIME_FREEZE_ENABLED = FLUXER_APP_PROXY_TIME_FREEZE_ENABLED
|
|
}
|
|
}
|
|
|
|
target "app-dist" {
|
|
inherits = ["app-proxy"]
|
|
target = "app-dist"
|
|
tags = []
|
|
output = ["type=local,dest=app-dist-output"]
|
|
}
|