-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-bake.hcl
57 lines (47 loc) · 982 Bytes
/
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
variable "TAG" {
default = "latest"
}
variable "MGR_REPO" {
default = "ghcr.io/guardllamanet/glmmgr"
}
variable "WG_REPO" {
default = "ghcr.io/guardllamanet/glmmgr-wg"
}
variable "WGTEST_REPO" {
default = "ghcr.io/guardllamanet/glmmgr-wgtest"
}
group "all" {
targets = ["mgr", "wg"]
}
target "wg" {
inherits = ["docker-metadata-action"]
contexts = {
base = "target:base"
wgtools = "target:wgtools"
}
dockerfile = "Dockerfile.wg"
tags = ["${WG_REPO}:${TAG}"]
}
target "mgr" {
inherits = ["docker-metadata-action"]
dockerfile = "Dockerfile"
contexts = {
base = "target:base"
}
tags = ["${MGR_REPO}:${TAG}"]
}
target "base" {
dockerfile = "Dockerfile.base"
}
target "wgtest" {
inherits = ["docker-metadata-action"]
dockerfile = "Dockerfile.wgtest"
contexts = {
wgtools = "target:wgtools"
}
tags = ["${WGTEST_REPO}:${TAG}"]
}
target "wgtools" {
dockerfile = "Dockerfile.wgtools"
}
target "docker-metadata-action" {}