a6562f4017
* Update run-document-server.sh (#439)
* Revert "Update run-document-server.sh (#439)"
This reverts commit 5c17c711b1
.
* Add bake config
* Add targets for multiarch build
* Add multiarch workflows
* Cosmetic changes
* Refactoring
* Cosmetic changes
* Cosmetic changes
* Change URL for test repo
* Refactor: refactoring code
* Refactoring sed
* Remove -ie build
* Add special tag for package
* Cosmetic changes
Co-authored-by: papacarlo <builder@onlyoffice.com>
Co-authored-by: Roger Shieh <sh.rog@protonmail.ch>
Co-authored-by: Alexey Golubev <alexey.golubev@onlyoffice.com>
48 lines
1.1 KiB
HCL
48 lines
1.1 KiB
HCL
variable "TAG" {
|
|
default = ""
|
|
}
|
|
|
|
variable "COMPANY_NAME" {
|
|
default = ""
|
|
}
|
|
|
|
variable "PREFIX_NAME" {
|
|
default = ""
|
|
}
|
|
|
|
variable "PRODUCT_EDITION" {
|
|
default = ""
|
|
}
|
|
|
|
variable "PRODUCT_NAME" {
|
|
default = ""
|
|
}
|
|
|
|
variable "DOCKERFILE" {
|
|
default = ""
|
|
}
|
|
|
|
target "documentserver" {
|
|
target = "documentserver"
|
|
dockerfile= "${DOCKERFILE}"
|
|
tags = ["docker.io/${COMPANY_NAME}/${PREFIX_NAME}${PRODUCT_NAME}${PRODUCT_EDITION}:${TAG}"]
|
|
platforms = ["linux/amd64", "linux/arm64"]
|
|
args = {
|
|
"PRODUCT_EDITION": "${PRODUCT_EDITION}"
|
|
"PRODUCT_NAME": "${PRODUCT_NAME}"
|
|
"COMPANY_NAME": "${COMPANY_NAME}"
|
|
}
|
|
}
|
|
|
|
target "documentserver-stable" {
|
|
target = "documentserver-stable"
|
|
dockerfile= "${DOCKERFILE}"
|
|
tags = ["docker.io/${COMPANY_NAME}/${PREFIX_NAME}${PRODUCT_NAME}${PRODUCT_EDITION}:${TAG}", "docker.io/${COMPANY_NAME}/${PREFIX_NAME}${PRODUCT_NAME}${PRODUCT_EDITION}:latest"]
|
|
platforms = ["linux/amd64", "linux/arm64"]
|
|
args = {
|
|
"PRODUCT_EDITION": "${PRODUCT_EDITION}"
|
|
"PRODUCT_NAME": "${PRODUCT_NAME}"
|
|
"COMPANY_NAME": "${COMPANY_NAME}"
|
|
}
|
|
}
|