-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlenra.yml
40 lines (40 loc) · 1.01 KB
/
lenra.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
componentsApi: "1.0"
generator:
dofigen:
builders:
- name: dependencies
image: docker.io/thevlang/vlang
workdir: /app
script:
# Install dependencies
- apt-get update && apt-get install -y libatomic1 libssl-dev
caches:
- /var/cache/apt
- name: builder
image: docker.io/thevlang/vlang
workdir: /app
artifacts:
- builder: dependencies
source: "/var/cache/apt"
destination: "/var/cache/apt"
adds:
- "."
script:
# Install dependencies
- apt-get install -y libatomic1 libssl-dev
- mkdir -p out/
- v -cg -o out/app .
# copy the generated binary outside of the target directory. If not the other stages won't be able to find it since it's in a cache volume
- mv out/app /tmp/
image: bitnami/minideb
workdir: /app
artifacts:
- builder: builder
source: "/tmp/app"
destination: "/app/"
cmd:
- /app/app
ignores:
- "**"
- "!/src"
- "!/v.mod"