-
Notifications
You must be signed in to change notification settings - Fork 108
/
docker-bake.hcl
115 lines (94 loc) · 2.23 KB
/
docker-bake.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
variable "PLATFORMS" {
default = ["linux/amd64", "linux/arm64"]
}
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 = ""
}
variable "PYPI_PYMISP_VERSION" {
default = ""
}
variable "PYPI_MISP_STIX" {
default = ""
}
variable "NAMESPACE" {
default = null
}
variable "COMMIT_HASH" {
default = null
}
variable "MODULES_TAG" {
default = ""
}
variable "MODULES_COMMIT" {
default = ""
}
variable "LIBFAUP_COMMIT" {
default = ""
}
variable "CORE_TAG" {
default = ""
}
variable "CORE_COMMIT" {
default = ""
}
variable "PHP_VER" {
default = null
}
group "default" {
targets = [
"misp-modules",
"misp-core",
]
}
target "misp-modules" {
context = "modules/."
dockerfile = "Dockerfile"
tags = flatten(["${NAMESPACE}/misp-modules:latest", "${NAMESPACE}/misp-modules:${COMMIT_HASH}", MODULES_TAG != "" ? ["${NAMESPACE}/misp-modules:${MODULES_TAG}"] : []])
args = {
"MODULES_TAG": "${MODULES_TAG}",
"MODULES_COMMIT": "${MODULES_COMMIT}",
"LIBFAUP_COMMIT": "${LIBFAUP_COMMIT}",
}
platforms = "${PLATFORMS}"
}
target "misp-core" {
context = "core/."
dockerfile = "Dockerfile"
tags = flatten(["${NAMESPACE}/misp-core:latest", "${NAMESPACE}/misp-core:${COMMIT_HASH}", CORE_TAG != "" ? ["${NAMESPACE}/misp-core:${CORE_TAG}"] : []])
args = {
"CORE_TAG": "${CORE_TAG}",
"CORE_COMMIT": "${CORE_COMMIT}",
"PHP_VER": "${PHP_VER}",
"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}",
"PYPI_PYMISP_VERSION": "${PYPI_PYMISP_VERSION}",
}
platforms = "${PLATFORMS}"
}