-
Notifications
You must be signed in to change notification settings - Fork 142
/
Copy pathdocker-bake.hcl
97 lines (89 loc) · 2.71 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
variable "GOCACHE" { default = "/go/pkg" }
variable "GOMODCACHE" { default = "/root/.cache/go-build" }
variable "BUSYBOX_IMAGE" { default = "busybox:1.36.1-musl"}
variable "ALPINE_IMAGE" { default = "alpine:3.20.3" }
variable "VERSION" { default = "0.0.0-unknown"}
variable "GIT_SHA" { default = ""}
variable "SLACK_BOT_CLIENT_ID" { default = ""}
variable "SLACK_BOT_CLIENT_SECRET" { default = ""}
variable "ANALYTICS_TRACKING_ID" { default = ""}
variable "ANALYTICS_API_KEY" { default = ""}
variable "SEGMENTIO_KEY" { default = ""}
variable "CLOUD_SEGMENTIO_KEY" { default = ""}
group "default" {
targets = ["agent-server", "testworkflow-init", "testworkflow-toolkit"]
}
target "api-meta" {}
target "api" {
inherits = ["api-meta"]
context="."
dockerfile = "build/new/api-server.Dockerfile"
platforms = ["linux/arm64", "linux/amd64"]
args = {
VERSION = "${VERSION}"
GIT_SHA = "${GIT_SHA}"
SLACK_BOT_CLIENT_ID = "${SLACK_BOT_CLIENT_ID}"
SLACK_BOT_CLIENT_SECRET = "${SLACK_BOT_CLIENT_SECRET}"
ANALYTICS_TRACKING_ID = "${ANALYTICS_TRACKING_ID}"
ANALYTICS_API_KEY = "${ANALYTICS_API_KEY}"
SEGMENTIO_KEY = "${SEGMENTIO_KEY}"
CLOUD_SEGMENTIO_KEY = "${CLOUD_SEGMENTIO_KEY}"
BUSYBOX_IMAGE = "${BUSYBOX_IMAGE}"
ALPINE_IMAGE = "${ALPINE_IMAGE}"
}
}
target "tw-init-meta" {}
target "tw-init" {
inherits = ["testworkflow-init-meta"]
context="."
dockerfile = "build/new/tw-init.Dockerfile"
platforms = ["linux/arm64", "linux/amd64"]
args = {
BUSYBOX_IMAGE = "${BUSYBOX_IMAGE}"
ALPINE_IMAGE = "${ALPINE_IMAGE}"
}
}
target "tw-toolkit-meta" {}
target "tw-toolkit" {
inherits = ["testworkflow-toolkit-meta"]
context="."
dockerfile = "build/new/tw-toolkit.Dockerfile"
platforms = ["linux/arm64", "linux/amd64"]
args = {
BUSYBOX_IMAGE = "${BUSYBOX_IMAGE}"
ALPINE_IMAGE = "${ALPINE_IMAGE}"
}
}
target "agent-server-meta" {}
target "agent-server" {
inherits = ["agent-server-meta"]
context="."
dockerfile = "build/_local/agent-server.Dockerfile"
platforms = ["linux/arm64"]
args = {
GOCACHE = "${GOCACHE}"
GOMODCACHE = "${GOMODCACHE}"
}
}
target "testworkflow-init-meta" {}
target "testworkflow-init" {
inherits = ["testworkflow-init-meta"]
context="."
dockerfile = "build/_local/testworkflow-init.Dockerfile"
platforms = ["linux/arm64"]
args = {
GOCACHE = "${GOCACHE}"
GOMODCACHE = "${GOMODCACHE}"
}
}
target "testworkflow-toolkit-meta" {}
target "testworkflow-toolkit" {
inherits = ["testworkflow-toolkit-meta"]
context="."
dockerfile = "build/_local/testworkflow-toolkit.Dockerfile"
platforms = ["linux/arm64"]
args = {
GOCACHE = "${GOCACHE}"
GOMODCACHE = "${GOMODCACHE}"
}
}