-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-bake.yaml
More file actions
52 lines (47 loc) · 806 Bytes
/
Copy pathdocker-bake.yaml
File metadata and controls
52 lines (47 loc) · 806 Bytes
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
variable:
APP_NAME:
default: docker-bake-example
REGISTRY:
default: myregistry.io
VERSION:
default: 1.0.0
group:
default:
targets:
- app-dev
production:
targets:
- app-prod
all:
targets:
- app-dev
- app-prod
- app-test
target:
base:
dockerfile: Dockerfile
context: .
app-dev:
inherits:
- base
target: development
tags:
- ${REGISTRY}/${APP_NAME}:dev
app-prod:
inherits:
- base
target: production
tags:
- ${REGISTRY}/${APP_NAME}:${VERSION}
- ${REGISTRY}/${APP_NAME}:latest
platforms:
- linux/amd64
- linux/arm64
app-test:
inherits:
- base
target: development
tags:
- ${REGISTRY}/${APP_NAME}:test
args:
NODE_ENV: test