-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrecipe.cue
69 lines (55 loc) · 1.48 KB
/
recipe.cue
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
package cake
import (
"duponey.cloud/scullery"
"duponey.cloud/buildkit/types"
"strings"
)
cakes: {
image: scullery.#Cake & {
recipe: {
input: {
from: {
registry: * "docker.io/dubodubonduponey" | string
}
}
process: {
platforms: types.#Platforms | * [
types.#Platforms.#AMD64,
types.#Platforms.#ARM64,
types.#Platforms.#V7,
// types.#Platforms.#I386,
// types.#Platforms.#V6,
// types.#Platforms.#S390X,
// types.#Platforms.#PPC64LE,
]
}
output: {
images: {
names: [...string] | * ["spotify"],
tags: [...string] | * ["latest"]
}
}
metadata: {
title: string | * "Dubo Spotify",
description: string | * "A Spotify connect receiver",
}
}
}
}
injectors: {
suite: * "bullseye" | =~ "^(?:bullseye|bookworm|trixie|sid)$" @tag(suite, type=string)
date: * "2022-12-01" | =~ "^[0-9]{4}-[0-9]{2}-[0-9]{2}$" @tag(date, type=string)
platforms: string @tag(platforms, type=string)
registry: * "registry.local" | string @tag(registry, type=string)
}
cakes: image: recipe: {
input: from: registry: injectors.registry
if injectors.platforms != _|_ {
process: platforms: strings.Split(injectors.platforms, ",")
}
output: images: tags: [injectors.suite + "-" + injectors.date, injectors.suite + "-latest", "latest"]
metadata: ref_name: injectors.suite + "-" + injectors.date
}
// Allow hooking-in a UserDefined environment as icing
UserDefined: scullery.#Icing
cakes: image: icing: UserDefined