-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-bake.hcl
49 lines (42 loc) · 1016 Bytes
/
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
## Documentation:
## https://docs.docker.com/build/ci/github-actions/multi-platform/#with-bake
variable "DEFAULT_TAG" { default = "wayofdev/nginx:local" }
## Special target: https://github.com/docker/metadata-action#bake-definition
target "docker-metadata-action" {
tags = ["${DEFAULT_TAG}"]
}
###########################
## Nginx Dev
###########################
target "nginx-dev-alpine" {
inherits = ["docker-metadata-action"]
context = "dist/dev-alpine"
dockerfile = "./Dockerfile"
}
###########################
## Nginx K8s
###########################
target "nginx-k8s-alpine" {
inherits = ["docker-metadata-action"]
context = "dist/k8s-alpine"
dockerfile = "./Dockerfile"
}
###########################
## Groups
###########################
group "all" {
targets = [
"nginx-dev-alpine",
"nginx-k8s-alpine",
]
}
group "dev" {
targets = [
"nginx-dev-alpine",
]
}
group "k8s" {
targets = [
"nginx-k8s-alpine",
]
}