-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
38 lines (34 loc) · 1.05 KB
/
docker-bake.hcl
File metadata and controls
38 lines (34 loc) · 1.05 KB
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
// Reproducible builds configuration
// Set SOURCE_DATE_EPOCH to git commit time for consistent timestamps:
// export SOURCE_DATE_EPOCH=$(git log -1 --format=%ct)
// docker buildx bake -f docker-bake.hcl
variable "SOURCE_DATE_EPOCH" {
default = "0"
}
group "default" {
targets = ["parent", "enclave"]
}
target "parent" {
context = "./parent"
dockerfile = "Dockerfile"
args = {
TARGETPLATFORM = "aarch64-unknown-linux-gnu"
SOURCE_DATE_EPOCH = "${SOURCE_DATE_EPOCH}"
}
platforms = ["linux/arm64"]
tags = ["parent-vault:latest"]
cache-to = ["type=gha,ignore-error=true,mode=max,scope=parent"]
cache-from = ["type=gha,scope=parent"]
}
target "enclave" {
context = "./enclave"
dockerfile = "Dockerfile"
args = {
TARGETPLATFORM = "aarch64-unknown-linux-musl"
SOURCE_DATE_EPOCH = "${SOURCE_DATE_EPOCH}"
}
platforms = ["linux/arm64"]
tags = ["enclave-vault:latest"]
cache-to = ["type=gha,ignore-error=true,mode=max,scope=enclave"]
cache-from = ["type=gha,scope=enclave"]
}