-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlain.yaml
41 lines (37 loc) · 1.35 KB
/
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-ldap
build:
base: laincloud/golang:1.10
prepare:
version: 20180907
script:
- sed -i 's|deb.debian.org|mirrors.tuna.tsinghua.edu.cn|g' /etc/apt/sources.list
- apt-get -y update && apt-get -y install unzip
- curl -sL https://deb.nodesource.com/setup_9.x | su --preserve-environment -
- go get -u -v github.com/golang/dep/cmd/dep
- cp -f /go/bin/dep /usr/local/bin/
- apt-get install -y nodejs
- npm config set registry https://registry.npm.taobao.org
- mkdir -p /go/src/github.com/laincloud/
- ln -sf /lain/app /go/src/github.com/laincloud/sso-ldap
- go get github.com/mijia/gobuildweb
- cd $GOPATH/src/github.com/mijia/gobuildweb && sed -i '/deps = append(deps, "browserify", "coffeeify", "envify", "uglifyify", "babelify", "babel-preset-es2015", "babel-preset-react", "nib", "stylus")/d' cmds.go && go install
- cd /go/src/github.com/laincloud/sso-ldap && make go-build
keep:
- node_modules
script:
- cd /go/src/github.com/laincloud/sso-ldap && make go-build
- unzip -o /lain/app/sso-ldap-0.1.zip -d /lain/app
release:
dest_base: laincloud/debian:stretch
copy:
- src: /lain/app/sso-ldap-0.1/*
dest: /lain/app/
web:
cmd: ./run.sh
port: 80
env:
- TEMPLATES_PATH=/lain/app/templates
secret_files:
- secrets
notify:
slack: "#sso"