-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathlain.yaml
41 lines (37 loc) · 996 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
34
35
36
37
38
39
40
41
appname: sso
build:
base: laincloud/centos-lain:20180103
prepare:
version: 20180810
script:
- yum -y update
- yum -y install unzip
- mkdir -p /go/src/github.com/laincloud/
- ln -sf /lain/app /go/src/github.com/laincloud/sso
- git clone --depth=1 https://github.com/golang/sys.git /go/src/golang.org/x/sys # GFW
- git clone --depth=1 https://github.com/golang/net.git /go/src/golang.org/x/net
- go get github.com/zhiwang-web/gobuildweb
- go get github.com/deckarep/golang-set
- go get github.com/tools/godep
- npm install
- make go-build
keep:
- node_modules
script:
- make go-build
- unzip -o /lain/app/sso-0.2.zip -d /lain/app
release:
dest_base: laincloud/centos-lain
copy:
- src: /lain/app/sso-0.2/*
dest: /lain/app/
web:
cmd: /lain/app/run.sh
port: 80
healthcheck: '/'
env:
- TEMPLATES_PATH=/lain/app/templates
secret_files:
- secrets
notify:
slack: "#sso"