-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
43 lines (37 loc) · 839 Bytes
/
docker-bake.hcl
File metadata and controls
43 lines (37 loc) · 839 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
variable "REGISTRY" {
default = "localhost/snapserv/container"
}
group "default" {
targets = [
"base-ubuntu",
"email-oauth2-proxy",
]
}
target "docker-metadata-action" {}
target "template-base" {
inherits = ["docker-metadata-action"]
dockerfile = "Dockerfile"
platforms = [
"linux/amd64",
"linux/arm64",
]
}
target "template" {
inherits = ["template-base"]
contexts = {
"base-ubuntu" = "target:base-ubuntu"
}
}
target "base-ubuntu" {
inherits = ["template-base"]
context = "./base-ubuntu/"
tags = [
"${REGISTRY}/base-ubuntu:latest",
"${REGISTRY}/base-ubuntu:22.04",
]
}
target "email-oauth2-proxy" {
inherits = ["template"]
context = "./email-oauth2-proxy/"
tags = ["${REGISTRY}/email-oauth2-proxy:latest"]
}