-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-bake.json
More file actions
85 lines (85 loc) · 2.3 KB
/
docker-bake.json
File metadata and controls
85 lines (85 loc) · 2.3 KB
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
{
"variable": {
"PRODUCT_NAME": {},
"REPO_NAME": {},
"VERSION": {},
"CHANNEL": {},
"DEPS_ID": {}
},
"group": {
"production": {
"targets": [
"web-production",
"server-production"
]
}
},
"target": {
"common": {
"args": {
"PUBLIC_VERSION": "${VERSION}",
"PUBLIC_PRODUCT_NAME": "${PRODUCT_NAME}",
"PUBLIC_REPO_NAME": "${REPO_NAME}"
},
"platforms": [
"linux/amd64"
],
"labels": {
"org.opencontainers.image.source": "https://github.com/faxaq/${REPO_NAME}",
"org.opencontainers.image.licenses": "MIT"
},
"cache-from": [
"type=gha,scope=${DEPS_ID}"
],
"cache-to": [
"type=gha,mode=max,scope=${DEPS_ID}"
]
},
"web": {
"inherits": [
"common"
],
"matrix": {
"ENV": [
"production"
]
},
"args": {
"PUBLIC_ENV": "${ENV}"
},
"Dockerfile": "Dockerfile",
"name": "web-${ENV}",
"tags": [
"ghcr.io/faxaq/${PRODUCT_NAME}_web:${VERSION}-${ENV}",
"ghcr.io/faxaq/${PRODUCT_NAME}_web:${CHANNEL}-${ENV}"
],
"labels": {
"org.opencontainers.image.description": "web"
},
"target": "web"
},
"server": {
"inherits": [
"common"
],
"matrix": {
"ENV": [
"production"
]
},
"args": {
"PUBLIC_ENV": "${ENV}"
},
"Dockerfile": "Dockerfile",
"name": "server-${ENV}",
"tags": [
"ghcr.io/faxaq/${PRODUCT_NAME}_server:${VERSION}-${ENV}",
"ghcr.io/faxaq/${PRODUCT_NAME}_server:${CHANNEL}-${ENV}"
],
"labels": {
"org.opencontainers.image.description": "server"
},
"target": "server"
}
}
}