-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbitbucket-pipelines.yml
52 lines (47 loc) · 1.05 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
image: node:12
pipelines:
default:
- step:
caches:
- node
- yarn
script:
- yarn install --prefer-offline
- yarn validate
branches:
develop:
- step:
name: Deploy to Develop
caches:
- node
- yarn
deployment: Test
script:
- yarn install --prefer-offline
- yarn validate
- yarn deploy develop
staging:
- step:
name: Deploy to Staging
caches:
- node
- yarn
deployment: Staging
script:
- yarn install --prefer-offline
- yarn validate
- yarn deploy staging
master:
- step:
name: Deploy to Production
caches:
- node
- yarn
deployment: Production
script:
- yarn install --prefer-offline
- yarn validate
- yarn deploy production
definitions:
caches:
yarn: /usr/local/share/.cache/yarn