2023-05-18 11:50:13 +02:00
|
|
|
variable "PLATFORMS" {
|
|
|
|
default = ["linux/amd64", "linux/arm64"]
|
|
|
|
}
|
|
|
|
|
2023-09-15 12:50:30 +02:00
|
|
|
variable "PYPI_REDIS_VERSION" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "PYPI_LIEF_VERSION" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "PYPI_PYDEEP2_VERSION" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "PYPI_PYTHON_MAGIC_VERSION" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "PYPI_MISP_LIB_STIX2_VERSION" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "PYPI_MAEC_VERSION" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "PYPI_MIXBOX_VERSION" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "PYPI_CYBOX_VERSION" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2023-09-17 13:37:02 +02:00
|
|
|
variable "PYPI_PYMISP_VERSION" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2024-08-06 13:37:15 +02:00
|
|
|
variable "PYPI_MISP_STIX" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2023-12-07 11:02:08 +01:00
|
|
|
variable "NAMESPACE" {
|
2023-05-18 11:50:13 +02:00
|
|
|
default = null
|
|
|
|
}
|
|
|
|
|
2023-12-07 11:02:08 +01:00
|
|
|
variable "COMMIT_HASH" {
|
2023-05-18 11:50:13 +02:00
|
|
|
default = null
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "MODULES_TAG" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "MODULES_COMMIT" {
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2023-09-12 11:23:20 +02:00
|
|
|
variable "LIBFAUP_COMMIT" {
|
2023-09-15 13:50:37 +02:00
|
|
|
default = ""
|
2023-09-12 11:23:20 +02:00
|
|
|
}
|
|
|
|
|
2023-12-08 09:45:49 +01:00
|
|
|
variable "CORE_TAG" {
|
2023-05-18 11:50:13 +02:00
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2023-12-08 09:45:49 +01:00
|
|
|
variable "CORE_COMMIT" {
|
2023-05-18 11:50:13 +02:00
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "PHP_VER" {
|
|
|
|
default = null
|
|
|
|
}
|
|
|
|
|
|
|
|
group "default" {
|
|
|
|
targets = [
|
|
|
|
"misp-modules",
|
2023-12-07 23:25:21 +01:00
|
|
|
"misp-core",
|
2023-05-18 11:50:13 +02:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
target "misp-modules" {
|
|
|
|
context = "modules/."
|
|
|
|
dockerfile = "Dockerfile"
|
2023-12-07 21:58:55 +01:00
|
|
|
tags = flatten(["${NAMESPACE}/misp-modules:latest", "${NAMESPACE}/misp-modules:${COMMIT_HASH}", MODULES_TAG != "" ? ["${NAMESPACE}/misp-modules:${MODULES_TAG}"] : []])
|
2023-05-18 11:50:13 +02:00
|
|
|
args = {
|
|
|
|
"MODULES_TAG": "${MODULES_TAG}",
|
2023-09-15 12:50:30 +02:00
|
|
|
"MODULES_COMMIT": "${MODULES_COMMIT}",
|
2023-09-15 13:50:37 +02:00
|
|
|
"LIBFAUP_COMMIT": "${LIBFAUP_COMMIT}",
|
2023-05-18 11:50:13 +02:00
|
|
|
}
|
|
|
|
platforms = "${PLATFORMS}"
|
|
|
|
}
|
|
|
|
|
2023-12-07 23:25:21 +01:00
|
|
|
target "misp-core" {
|
|
|
|
context = "core/."
|
2023-05-18 11:50:13 +02:00
|
|
|
dockerfile = "Dockerfile"
|
2023-12-08 09:45:49 +01:00
|
|
|
tags = flatten(["${NAMESPACE}/misp-core:latest", "${NAMESPACE}/misp-core:${COMMIT_HASH}", CORE_TAG != "" ? ["${NAMESPACE}/misp-core:${CORE_TAG}"] : []])
|
2023-05-18 11:50:13 +02:00
|
|
|
args = {
|
2023-12-08 09:45:49 +01:00
|
|
|
"CORE_TAG": "${CORE_TAG}",
|
|
|
|
"CORE_COMMIT": "${CORE_COMMIT}",
|
2023-05-18 11:50:13 +02:00
|
|
|
"PHP_VER": "${PHP_VER}",
|
2023-09-15 12:50:30 +02:00
|
|
|
"PYPI_REDIS_VERSION": "${PYPI_REDIS_VERSION}",
|
|
|
|
"PYPI_LIEF_VERSION": "${PYPI_LIEF_VERSION}",
|
|
|
|
"PYPI_PYDEEP2_VERSION": "${PYPI_PYDEEP2_VERSION}",
|
|
|
|
"PYPI_PYTHON_MAGIC_VERSION": "${PYPI_PYTHON_MAGIC_VERSION}",
|
|
|
|
"PYPI_MISP_LIB_STIX2_VERSION": "${PYPI_MISP_LIB_STIX2_VERSION}",
|
|
|
|
"PYPI_MAEC_VERSION": "${PYPI_MAEC_VERSION}",
|
|
|
|
"PYPI_MIXBOX_VERSION": "${PYPI_MIXBOX_VERSION}",
|
|
|
|
"PYPI_CYBOX_VERSION": "${PYPI_CYBOX_VERSION}",
|
2023-09-17 13:37:02 +02:00
|
|
|
"PYPI_PYMISP_VERSION": "${PYPI_PYMISP_VERSION}",
|
2023-05-18 11:50:13 +02:00
|
|
|
}
|
|
|
|
platforms = "${PLATFORMS}"
|
|
|
|
}
|