sparqsineedge/bitbucket-pipelines.yml
sriram-at-840620226347 79e572751c Vendor allocated changes
2020-06-24 18:58:59 +05:30

30 lines
1.1 KiB
YAML
Executable File

# This is a sample build configuration for JavaScript.
# Check our guides at https://confluence.atlassian.com/x/14UWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: node:10.15.3
pipelines:
branches:
master:
- step:
caches:
- node
size: 2x # Double resources available for this step.
script: # Modify the commands below to build your repository.
- cd ng6-seed
- npm install
- npm install -g @angular/cli
- node --max_old_space_size=2046 node_modules/@angular/cli/bin/ng build --configuration=staging
- ls -ltr
- cd dist
- pipe: atlassian/aws-s3-deploy:0.3.8
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: 'ap-south-1'
S3_BUCKET: 'autodeploy001'
LOCAL_PATH: $(pwd)
DELETE_FLAG: 'true'