-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-bake.json
65 lines (65 loc) · 1.59 KB
/
docker-bake.json
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
{
"variable": {
"VERSION": {},
"CHANNEL": {},
"DEPS_ID": {}
},
"group": {
"production": {
"targets": ["server", "ui-production"]
},
"recette": {
"targets": ["server", "ui-recette"]
},
"preview": {
"targets": ["server", "ui-preview"]
},
"local": {
"targets": ["server", "ui-local"]
}
},
"target": {
"common": {
"args": {
"PUBLIC_VERSION": "${VERSION}"
},
"dockerfile": "Dockerfile",
"platforms": ["linux/amd64"],
"labels": {
"org.opencontainers.image.source": "https://github.com/mission-apprentissage/bal",
"org.opencontainers.image.licenses": "MIT"
},
"cache-from": ["type=gha,scope=${DEPS_ID}"],
"cache-to": ["type=gha,mode=max,scope=${DEPS_ID}"]
},
"server": {
"inherits": ["common"],
"tags": [
"ghcr.io/mission-apprentissage/mna_bal_server:${VERSION}",
"ghcr.io/mission-apprentissage/mna_bal_server:${CHANNEL}"
],
"labels": {
"org.opencontainers.image.description": "Server bal"
},
"target": "server"
},
"ui": {
"inherits": ["common"],
"matrix": {
"ENV": ["production", "recette", "preview", "local"]
},
"name": "ui-${ENV}",
"args": {
"PUBLIC_ENV": "${ENV}"
},
"tags": [
"ghcr.io/mission-apprentissage/mna_bal_ui:${VERSION}-${ENV}",
"ghcr.io/mission-apprentissage/mna_bal_ui:${CHANNEL}-${ENV}"
],
"labels": {
"org.opencontainers.image.description": "Ui bal"
},
"target": "ui"
}
}
}