-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-bake.hcl
67 lines (55 loc) · 1002 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// This is what is baked by GitHub Actions
group "default" { targets = ["bullseye-full"] }
variable "PUSH" {
default = "false"
}
function "_output" {
params = [push]
result = push ? "type=registry" : "type=oci,dest=texlive.oci"
}
variable "VARIANT" {
default = null
}
variable "SCHEME" {
default = null
}
variable "DOCFILES" {
default = null
}
variable "SRCFILES" {
default = null
}
target "metadata-action-bullseye-full" {}
target "_platforms" {
platforms = [
"linux/amd64",
"linux/arm64",
]
}
target "_args" {
args = {
"VARIANT" = VARIANT,
"SCHEME" = SCHEME,
"DOCFILES" = DOCFILES,
"SRCFILES" = SRCFILES,
}
}
target "_base" {
inherits = ["_args"]
args = {
"BUILDKIT_SBOM_SCAN_CONTEXT" = "true",
}
attest = [
"type=sbom",
"type=provenance,mode=max",
]
context = "."
dockerfile = "Dockerfile"
output = [_output(PUSH)]
}
target "bullseye-full" {
inherits = [
"metadata-action-bullseye-full",
"_base",
]
}