-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwercker.yml
More file actions
34 lines (33 loc) · 1.01 KB
/
wercker.yml
File metadata and controls
34 lines (33 loc) · 1.01 KB
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
# Containers: https://devcenter.wercker.com/overview-and-core-concepts/containers/
# Pipelines: https://devcenter.wercker.com/development/pipelines/
# Steps: https://devcenter.wercker.com/development/steps/
box: node
build:
steps:
- npm-install
- script:
name: echo nodejs information
code: |
echo "node version $(node -v) running"
echo "npm version $(npm -v) running"
- script:
name: build production
code: |
npm run build:prod:$CONF
deploy:
steps:
- add-to-known_hosts:
hostname: $SERVER_HOST
port: $SERVER_PORT
- mktemp:
envvar: SERVER_PRIVATE_KEY_PATH
- create-file:
name: write key
filename: $SERVER_PRIVATE_KEY_PATH
content: $SERVER_PRIVATE_KEY
overwrite: true
hide-from-log: true
- script:
name: transfer application
code: |
scp -i $SERVER_PRIVATE_KEY_PATH -o StrictHostKeyChecking=no -o UserKnownHostsFile=no -P $SERVER_PORT -r dist/* $SERVER_USER@$SERVER_HOST:$SERVER_DIR