-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitbucket-pipelines.yml
38 lines (37 loc) · 1.07 KB
/
bitbucket-pipelines.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
image: node:10.15.1
pipelines:
branches:
master:
- step:
name: Run Build
caches:
- node
script:
- yarn
- yarn build
artifacts:
- dist/**
- step:
name: Deploy to Test Server
deployment: test
script:
- export APP_BUILD=$(date +%s)
- scp -r dist/ [email protected]:/home/deploy/$(printenv APP_BUILD)
- ssh [email protected] ln -sfn /home/deploy/$(printenv APP_BUILD) /var/www/app
alpha:
- step:
name: Run Build
caches:
- node
script:
- yarn
- yarn build:prod
artifacts:
- dist/**
- step:
name: Deploy to Production Server
deployment: Production
script:
- export APP_BUILD=$(date +%s)
- scp -r dist/ [email protected]:/home/deploy/$(printenv APP_BUILD)
- ssh [email protected] ln -sfn /home/deploy/$(printenv APP_BUILD) /var/www/app