-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
recipe.yml
48 lines (45 loc) · 1.24 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
name: Differ
id: differ
stages:
- id: build
base: docker.io/golang:1.22-alpine
singlelayer: false
labels:
maintainer: Mateus Melchiades
args:
GIN_MODE: release
entrypoint: ["/home/user/differ"]
expose:
"8080": ""
modules:
- name: init
type: shell
source:
type: git
url: https://github.com/Vanilla-OS/Differ
branch: main
commit: latest
commands:
- mkdir /home/user
- cp /sources/init/main.go /home/user/
- cp /sources/init/go.mod /home/user/
- cp /sources/init/go.sum /home/user/
- cp /sources/init/go.work /home/user/
- cp /sources/init/Makefile /home/user/
- mv /sources/init/core /home/user/core/
- mv /sources/init/diff /home/user/diff/
- mv /sources/init/types /home/user/types/
- rm -rf /sources/init
- name: install-deps
type: shell
commands:
- apk add gcc musl-dev sqlite make
- name: build
type: shell
commands:
- cd /home/user
- make
- name: cleanup
type: shell
commands:
- rm -rf main.go go.mod go.sum go.work Makefile core/ types/