2022-06-09 12:27:39 +02:00
|
|
|
variable "TAG" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2022-06-10 14:43:50 +02:00
|
|
|
variable "SHORTER_TAG" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "SHORTEST_TAG" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2022-06-09 12:27:39 +02:00
|
|
|
variable "COMPANY_NAME" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "PREFIX_NAME" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "PRODUCT_EDITION" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "PRODUCT_NAME" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "DOCKERFILE" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2022-07-21 17:44:06 +02:00
|
|
|
variable "PLATFORM" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "PACKAGE_URL" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2022-08-24 10:14:59 +02:00
|
|
|
variable "DEVELOP_BUILD" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2022-06-09 12:27:39 +02:00
|
|
|
target "documentserver" {
|
|
|
|
target = "documentserver"
|
|
|
|
dockerfile= "${DOCKERFILE}"
|
2022-08-24 10:14:59 +02:00
|
|
|
tags = [
|
|
|
|
"docker.io/${COMPANY_NAME}/${PREFIX_NAME}${PRODUCT_NAME}${PRODUCT_EDITION}:${TAG}",
|
|
|
|
notequal("",DEVELOP_BUILD) ? "docker.io/${COMPANY_NAME}/${PREFIX_NAME}${PRODUCT_NAME}${PRODUCT_EDITION}:latest": "",
|
|
|
|
]
|
2022-07-21 17:44:06 +02:00
|
|
|
platforms = ["${PLATFORM}"]
|
2022-06-09 12:27:39 +02:00
|
|
|
args = {
|
|
|
|
"PRODUCT_EDITION": "${PRODUCT_EDITION}"
|
|
|
|
"PRODUCT_NAME": "${PRODUCT_NAME}"
|
|
|
|
"COMPANY_NAME": "${COMPANY_NAME}"
|
2022-07-22 08:44:59 +02:00
|
|
|
"PACKAGE_URL": "${PACKAGE_URL}"
|
2022-07-21 17:44:06 +02:00
|
|
|
"PLATFORM": "${PLATFORM}"
|
2022-06-09 12:27:39 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
target "documentserver-stable" {
|
|
|
|
target = "documentserver-stable"
|
|
|
|
dockerfile= "${DOCKERFILE}"
|
2022-06-10 14:43:50 +02:00
|
|
|
tags = ["docker.io/${COMPANY_NAME}/${PREFIX_NAME}${PRODUCT_NAME}${PRODUCT_EDITION}:${TAG}",
|
|
|
|
"docker.io/${COMPANY_NAME}/${PREFIX_NAME}${PRODUCT_NAME}${PRODUCT_EDITION}:${SHORTER_TAG}",
|
|
|
|
"docker.io/${COMPANY_NAME}/${PREFIX_NAME}${PRODUCT_NAME}${PRODUCT_EDITION}:${SHORTEST_TAG}",
|
|
|
|
"docker.io/${COMPANY_NAME}/${PREFIX_NAME}${PRODUCT_NAME}${PRODUCT_EDITION}:latest"]
|
2022-06-09 12:27:39 +02:00
|
|
|
platforms = ["linux/amd64", "linux/arm64"]
|
|
|
|
args = {
|
|
|
|
"PRODUCT_EDITION": "${PRODUCT_EDITION}"
|
|
|
|
"PRODUCT_NAME": "${PRODUCT_NAME}"
|
|
|
|
"COMPANY_NAME": "${COMPANY_NAME}"
|
|
|
|
}
|
|
|
|
}
|