-
Notifications
You must be signed in to change notification settings - Fork 2
/
bitbucket-pipelines.yml
51 lines (51 loc) · 1.2 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
definitions:
caches:
nextcache: .next/cache
bundler: vendor/bundle
pipelines:
pull-requests:
"**":
- step:
name: Build
image: node:14.16.0
caches:
- node
- nextcache
script:
- yarn install
- yarn test
- yarn build
custom:
default:
- step:
name: Test and Build
image: node:14.16.0
caches:
- node
- nextcache
script:
- yarn install
- yarn test
- yarn build
"Deploy to staging from GITHUB develop":
- step:
name: Deploy To Staging
image: ruby:2.6.3
deployment: staging
caches:
- bundler
script:
- gem install bundler
- bundle install
- bundle exec cap staging deploy
"Deploy to production from GITHUB main":
- step:
name: Deploy To Production
image: ruby:2.6.3
deployment: production
caches:
- bundler
script:
- gem install bundler
- bundle install
- bundle exec cap production deploy