-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
42 lines (38 loc) · 1.36 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
#Dockerfile
image: eightysix/beanstalk_pipeline
pipelines:
default:
- step:
name: Install and Test
deployment: test
script:
- npm install
- npm run jest
- npm run build
branches:
development:
- step:
name: Staging Test and Deploy
deployment: staging
script:
- npm install
- npm run jest
- sed -i "s|http://localhost:3000|$DEV_API_URL|g" package.json
- npm run build
- sed -i "s|<Access Key ID>|$AWS_ACCESS_KEY_ID|g" ~/.aws/config
- sed -i "s|<Secret Access Key>|$AWS_SECRET_ACCESS_KEY|g" ~/.aws/config
- sed -i "s|<API_URL>|$DEV_API_URL|g" .ebextensions/05-variables.config
- eb deploy eightysix-app-dev --nohang
master:
- step:
name: Production Test and Deploy
deployment: production
script:
- npm install
- npm run jest
- sed -i "s|http://localhost:3000|$PROD_API_URL|g" package.json
- npm run build
- sed -i "s|<Access Key ID>|$AWS_ACCESS_KEY_ID|g" ~/.aws/config
- sed -i "s|<Secret Access Key>|$AWS_SECRET_ACCESS_KEY|g" ~/.aws/config
- sed -i "s|<API_URL>|$PROD_API_URL|g" .ebextensions/05-variables.config
- eb deploy eightysix-app-prod --nohang