-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.hcl
74 lines (64 loc) · 1.9 KB
/
test.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
68
69
70
71
72
73
74
variable "OWNER" {
default = "viceice-tests"
}
variable "REPO" {
default = "viceice-tests/docker-buildx-tests"
}
group "default" {
targets = ["test"]
}
target "settings" {
platforms = ["linux/amd64"]
}
target "test" {
inherits = ["settings"]
target = "slim"
output = ["type=registry"]
}
target "pkg_no-cache" {
inherits = ["test"]
tags = ["docker.pkg.github.com/${REPO}/test:no-cache"]
output = ["type=docker"]
}
target "pkg_inline" {
inherits = ["test"]
cache-from = ["type=registry,ref=docker.pkg.github.com/${REPO}/test:inline"]
cache-to = ["type=inline"]
tags = ["docker.pkg.github.com/${REPO}/test:inline"]
output = ["type=registry"]
}
target "pkg_inline-max" {
inherits = ["test"]
cache-from = ["type=registry,ref=docker.pkg.github.com/${REPO}/test:inline-max,mode=max"]
cache-to = ["type=inline"]
tags = ["docker.pkg.github.com/${REPO}/test:inline-max"]
output = ["type=registry"]
}
target "ghcr_no-cache" {
inherits = ["test"]
tags = ["ghcr.io/${OWNER}/test:no-cache"]
}
target "ghcr_inline" {
inherits = ["test"]
cache-from = ["type=registry,ref=ghcr.io/${OWNER}/test:inline"]
cache-to = ["type=inline"]
tags = ["ghcr.io/${OWNER}/test:inline"]
}
target "ghcr_inline-max" {
inherits = ["test"]
cache-from = ["type=registry,ref=ghcr.io/${OWNER}/test:inline-max,mode=max"]
cache-to = ["type=inline"]
tags = ["ghcr.io/${OWNER}/test:inline-max"]
}
target "ghcr_reg" {
inherits = ["test"]
cache-from = ["type=registry,ref=ghcr.io/${OWNER}/cache:reg"]
cache-to = ["type=registry,ref=ghcr.io/${OWNER}/cache:reg"]
tags = ["ghcr.io/${OWNER}/test:reg"]
}
target "ghcr_reg-max" {
inherits = ["test"]
cache-from = ["type=registry,ref=ghcr.io/${OWNER}/cache:reg-max"]
cache-to = ["type=registry,ref=ghcr.io/${OWNER}/cache:reg-max,mode=max"]
tags = ["ghcr.io/${OWNER}/test:reg-max"]
}