-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-bake.hcl
46 lines (37 loc) · 1.04 KB
/
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
variable "BAKE_VERSION" {
default = "latest"
}
variable "BAKE_REGISTRY" {
default = ""
}
variable "BAKE_RELEASENAME" {
default = ""
}
variable "BAKE_CACHEFROM_REGISTRY" {
default = ""
}
variable "BAKE_CACHETO_REGISTRY" {
default = ""
}
variable "BAKE_CACHEFROM_NAME" {
default = ""
}
variable "BAKE_CACHETO_NAME" {
default = ""
}
/*
* Groups for target ordering
*/
group "stage1" {
targets = ["starling-clover"]
}
target "starling-clover" {
context = "."
tags = [
"${BAKE_REGISTRY}uobflightlabstarling/starling-clover:${BAKE_VERSION}",
notequal("",BAKE_RELEASENAME) ? "${BAKE_REGISTRY}uobflightlabstarling/starling-clover:${BAKE_RELEASENAME}": "",
]
platforms = ["linux/amd64", "linux/arm64"]
cache-to = [ notequal("",BAKE_CACHETO_NAME) ? "${BAKE_CACHETO_REGISTRY}uobflightlabstarling/starling-clover:${BAKE_CACHETO_NAME}" : "" ]
cache-from = [ notequal("",BAKE_CACHEFROM_NAME) ? "${BAKE_CACHEFROM_REGISTRY}uobflightlabstarling/starling-clover:${BAKE_CACHEFROM_NAME}" : "" ]
}