-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-bake.hcl
40 lines (36 loc) · 940 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
target "slim" {
dockerfile = "slim.Dockerfile"
}
target "alpine" {
dockerfile = "alpine.Dockerfile"
}
// Special target: https://github.com/docker/metadata-action#bake-definition
target "docker-metadata-action" {
platforms = [
"linux/amd64",
"linux/arm64",
"linux/386",
]
}
target "slim-release" {
inherits = ["docker-metadata-action", "slim"]
cache-to = [
"type=registry,mode=max,ref=ghcr.io/cyb3r-jak3/pypy-flask-cache:slim"
]
cache-from = [
"ghcr.io/cyb3r-jak3/pypy-flask-cache:slim"
]
}
target "alpine-release" {
inherits = ["docker-metadata-action", "alpine"]
cache-to = [
"type=registry,mode=max,ref=ghcr.io/cyb3r-jak3/pypy-flask-cache:alpine"
]
cache-from = [
"ghcr.io/cyb3r-jak3/pypy-flask-cache:alpine"
]
platforms = [
"linux/amd64",
"linux/arm64",
]
}