-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
31 lines (30 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
image: node:16-alpine
pipelines:
branches:
staging:
- step:
caches:
- node
script:
- npm install
- npm install -g serverless
- serverless config credentials --provider aws --key ${AWS_DEV_LAMBDA_KEY} --secret ${AWS_DEV_LAMBDA_SECRET}
- serverless deploy --stage staging --region us-east-2
dev:
- step:
caches:
- node
script:
- npm install
- npm install -g serverless
- serverless config credentials --provider aws --key ${AWS_DEV_LAMBDA_KEY} --secret ${AWS_DEV_LAMBDA_SECRET}
- serverless deploy --stage dev --region us-west-1
main:
- step:
caches:
- node
script:
- npm install
- npm install -g serverless
- serverless config credentials --provider aws --key ${AWS_DEV_LAMBDA_KEY} --secret ${AWS_DEV_LAMBDA_SECRET}
- serverless deploy --stage prod --region us-east-1