-
Notifications
You must be signed in to change notification settings - Fork 6
/
lain.yaml
33 lines (29 loc) · 894 Bytes
/
lain.yaml
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
appname: archon
build:
base: laincloud/node:9
prepare:
script:
- sed -i 's|deb.debian.org|mirrors.tuna.tsinghua.edu.cn|g' /etc/apt/sources.list
- sed -i 's|security.debian.org|mirrors.tuna.tsinghua.edu.cn/debian-security|g' /etc/apt/sources.list
- apt-get -y update && apt-get -y install apt-transport-https ca-certificates golang
script:
- yarn install
- yarn build
- mkdir -p /go/src/github.com/laincloud/archon
- cp -rf main.go /go/src/github.com/laincloud/archon/
- GOPATH=/go go install github.com/laincloud/archon
volumes:
- /lain/app/node_modules
release:
dest_base: laincloud/debian:stretch
copy:
- src: /go/bin/archon
dest: /lain/app/archon
- src: /lain/app/dist
dest: /lain/app/dist
web:
cmd: /lain/app/archon -port=8080 -staticdir=/lain/app/dist
port: 8080
memory: 256M
notify:
slack: "#lain"