forked from umrum/umrum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
47 lines (47 loc) · 1.43 KB
/
wercker.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
box: wercker/nodejs
services:
- wercker/mongodb
- wercker/redis
build:
steps:
- npm-install
- npm-test
deploy:
steps:
- add-to-known_hosts:
hostname: $PRODUCTION_HOST
port: $PRODUCTION_SSH_PORT
- mktemp:
envvar: PRIVATEKEY_PATH
- create-file:
name: PrivateKey
filename: $PRIVATEKEY_PATH
content: $DEPLOY_KEY_PRIVATE
overwrite: true
hide-from-log: true
- create-file:
name: Deploy Configuration
filename: deploy.conf
overwrite: true
content: |
[wercker]
key $PRIVATEKEY_PATH
user $DEPLOY_USER
host $PRODUCTION_HOST
port $PRODUCTION_SSH_PORT
repo [email protected]:umrum/umrum.git
ref origin/master
path $DEPLOY_HOME
post-deploy source ~/.profile; npm run-script compile && npm run-script pm2-start
test sleep 5 && wget -qO /dev/null localhost
- script:
name: Deploy to $PRODUCTION_HOST
code: ./deploy wercker
after-steps:
- rafaelverger/newrelic-deployment:
api_key: $NEWRELIC_API_KEY
app_name: UMRUM
- sherzberg/slack-notify:
subdomain: frontendbahia
token: $SLACK_TOKEN
channel: "#umrum"