-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrecipe.yml
51 lines (48 loc) · 1.21 KB
/
recipe.yml
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
name: Chronos Image
id: chronos
stages:
- id: build
base: ghcr.io/vanilla-os/pico:main
singlelayer: false
labels:
maintainer: Vanilla OS Contributors
entrypoint:
exec:
- /bin/sh
- '-c'
- cd /app && ./chronos
args:
DEBIAN_FRONTEND: noninteractive
runs:
commands:
- echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/01norecommends
modules:
- name: update-repo
type: shell
commands:
- apt-get update
- name: install-deps
type: apt
source:
packages:
- git
- nano
- wget
- name: install-go
type: shell
commands:
- wget https://go.dev/dl/go1.24.0.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.24.0.linux-amd64.tar.gz
- /usr/local/go/bin/go version
- name: build-app
type: shell
source:
type: git
url: https://github.com/Vanilla-OS/Chronos
branch: main
commit: latest
commands:
- mv /sources/build-app /app
- cd /app
- /usr/local/go/bin/go build -o chronos .
- mv config /config