-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-bake.json
69 lines (69 loc) · 1.78 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
66
67
68
69
{
"variable": {
"PRODUCT_NAME": {},
"REPO_NAME": {},
"VERSION": {},
"CHANNEL": {},
"DEPS_ID": {}
},
"group": {
"production": {
"targets": ["server", "ui-production"]
},
"recette1": {
"targets": ["server", "ui-recette1"]
},
"recette2": {
"targets": ["server", "ui-recette2"]
},
"local": {
"targets": ["server", "ui-local"]
}
},
"target": {
"common": {
"args": {
"PUBLIC_VERSION": "${VERSION}",
"PUBLIC_PRODUCT_NAME": "${PRODUCT_NAME}",
"PUBLIC_REPO_NAME": "${REPO_NAME}"
},
"dockerfile": "Dockerfile",
"platforms": ["linux/amd64"],
"labels": {
"org.opencontainers.image.source": "https://github.com/mission-apprentissage/${REPO_NAME}",
"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/ij_${PRODUCT_NAME}_server:${VERSION}",
"ghcr.io/mission-apprentissage/ij_${PRODUCT_NAME}_server:${CHANNEL}"
],
"labels": {
"org.opencontainers.image.description": "Server"
},
"target": "server"
},
"ui": {
"inherits": ["common"],
"matrix": {
"ENV": ["production", "recette1", "recette2", "local"]
},
"name": "ui-${ENV}",
"args": {
"PUBLIC_ENV": "${ENV}"
},
"tags": [
"ghcr.io/mission-apprentissage/ij_${PRODUCT_NAME}_ui:${VERSION}-${ENV}",
"ghcr.io/mission-apprentissage/ij_${PRODUCT_NAME}_ui:${CHANNEL}-${ENV}"
],
"labels": {
"org.opencontainers.image.description": "Ui"
},
"target": "ui"
}
}
}