-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-bake.hcl
76 lines (55 loc) · 1.57 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
variable "VERSION" {
default = "source"
}
variable "VERSION_URL" {
default = ""
}
variable "VERSION_DATE" {
default = ""
}
variable "GITHUB_REF_NAME" {
default = ""
}
variable "WEB_CACHE_FROM" {
default = ""
}
variable "WEB_CACHE_TO" {
default = ""
}
variable "FPM_CACHE_FROM" {
default = ""
}
variable "FPM_CACHE_TO" {
default = ""
}
target "fpm" {
context = "backend"
labels = {
"org.opencontainers.image.description" = "Pilcrow FPM Container Image version: ${ VERSION }@${VERSION_DATE } (${ VERSION_URL })"
}
output = ["type=image,push=true,annotation-index.org.opencontainers.image.description=Pilcrow FPM Container Image version: ${ VERSION }@${VERSION_DATE } (${ VERSION_URL })"]
cache-from = ["${FPM_CACHE_FROM}", "type=registry,ref=ghcr.io/mesh-research/pilcrow/fpm:edge"]
cache-to = ["${FPM_CACHE_TO}"]
}
target "web" {
context = "client"
labels = {
"org.opencontainers.image.description" = "Pilcrow WEB Container Image version: ${ VERSION }@${VERSION_DATE } (${ VERSION_URL })"
}
output = ["type=image,push=true,annotation-index.org.opencontainers.image.description=Pilcrow WEB Container Image version: ${ VERSION }@${VERSION_DATE } (${ VERSION_URL })"]
cache-from = ["${WEB_CACHE_FROM}", "type=registry,ref=ghcr.io/mesh-research/pilcrow/web:edge"]
cache-to = ["${WEB_CACHE_TO}"]
}
target "fpm-release" {
inherits = ["fpm"]
}
target "web-release" {
inherits = ["web"]
platforms = ["linux/amd64", "linux/arm64"]
}
group "default" {
targets = ["fpm", "web"]
}
group "release" {
targets = ["fpm-release", "web-release"]
}