Last active
August 26, 2016 12:45
-
-
Save rotemtam/6a3f626f98fbbac61ebb47d3bf6b5f33 to your computer and use it in GitHub Desktop.
Build script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
PATH_TO_AWS_CREDENTIALS=~/.aws/credentials | |
AWS_REGION=us-east-1 | |
# build the image | |
docker build . -t apex-lambda-deployer | |
# run unit tests | |
docker run apex-lambda-deployer npm test | |
# deploy | |
docker run -e AWS_REGION=$AWS_REGION -v $PATH_TO_AWS_CREDENTIALS:/root/.aws/credentials apex-lambda-deployer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment