-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwagon.cue
60 lines (49 loc) · 1.01 KB
/
wagon.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
package main
import (
"strings"
"wagon.octohelm.tech/core"
"github.com/innoai-tech/runtime/cuepkg/libify"
)
client: env: core.#ClientEnv & {
VERSION: string | *"5"
}
actions: ffmpeg: libify.#Project & {
module: "github.com/innoai-tech/ffmpeg"
version: "\(client.env.VERSION)"
base: {
source: "docker.io/library/debian:11"
}
// https://packages.debian.org/bullseye/ffmpeg
packages: {
"libavfilter-dev": _
"libavcodec-dev": _
"libavformat-dev": _
"libswscale-dev": _
"libavutil-dev": _
}
target: {
arch: ["amd64", "arm64"]
include: [
"/usr/include/{{ .TARGETGNUARCH }}-linux-gnu",
]
lib: [
"/lib/{{ .TARGETGNUARCH }}-linux-gnu",
"/usr/lib/{{ .TARGETGNUARCH }}-linux-gnu",
]
}
ship: {
name: strings.Replace(module, "github.com/", "ghcr.io/", -1)
}
}
setting: {
_env: core.#ClientEnv & {
GH_USERNAME: string | *""
GH_PASSWORD: core.#Secret
}
setup: core.#Setting & {
registry: "ghcr.io": auth: {
username: _env.GH_USERNAME
secret: _env.GH_PASSWORD
}
}
}