Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: 0.2
- phases:
- install:
- commands:
- # Install dependencies needed for running tests
- - npm install
- # Upgrade AWS CLI to the latest version
- - pip install --upgrade awscli
- pre_build:
- commands:
- # Discover and run unit tests in the 'tests' directory
- - npm test
- build:
- commands:
- # Use AWS SAM to package the application by using AWS CloudFormation
- - aws s3 cp --recursive public/ s3://$WEBSITE_S3_BUCKET/public/ --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
- - sed -i -e "s|assets/|$WEBSITE_S3_PREFIX/public/assets/|g" public/index.html
- - aws cloudformation package --template template.yml --s3-bucket $S3_BUCKET --output-template template-export.yml
- artifacts:
- type: zip
- files:
- - template-export.yml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement