-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwercker.yml
More file actions
31 lines (27 loc) · 789 Bytes
/
wercker.yml
File metadata and controls
31 lines (27 loc) · 789 Bytes
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
box: node
build:
steps:
- script:
name: echo nodejs information
code: |
echo "node version $(node -v) running"
echo "npm version $(npm -v) running"
- npm-install
# disable tests for now because we don't have any
#- npm-test
deploy:
steps:
- add-ssh-key:
keyname: DOKKU
- script:
name: Force add to known hosts due to custom port
code: |
ssh -p $SERVER_PORT -o StrictHostKeyChecking=no dokku@$SERVER_HOSTNAME apps
- script:
name: Add remote
code: |
git remote add wercker-dokku ssh://dokku@$SERVER_HOSTNAME:$SERVER_PORT/scroooge || true
- script:
name: Push to dokku
code: |
git push wercker-dokku $WERCKER_GIT_COMMIT:master -f