-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitbucket-pipelines.yml
31 lines (30 loc) · 1.04 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
# Simple build configuration to run lint. For additional features, check out the Bitbucket guides at https://confluence.atlassian.com/x/14UWN for more examples.
image: node:10.15.3
pipelines:
default:
- step:
name: "Validate, test, and build"
caches:
- node
script:
- npm install
- npm run lint
- npm test -- --coverage
- unset CI
- npm run build
artifacts:
- vault-pam-ui.zip
- step:
name: "Deploy to Elastic Beanstalk"
deployment: test
script:
- pipe: atlassian/aws-elasticbeanstalk-deploy:0.2.5
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: "us-east-1"
APPLICATION_NAME: "vault-pam-ui"
ENVIRONMENT_NAME: "development"
ZIP_FILE: "vault-pam-ui.zip"
S3_BUCKET: "elasticbeanstalk-us-east-1-163714151155"
VERSION_LABEL: "v.0.${BITBUCKET_BUILD_NUMBER}"