Skip to content

Instantly share code, notes, and snippets.

@rotemtam
Last active August 26, 2016 12:45
Show Gist options
  • Save rotemtam/6a3f626f98fbbac61ebb47d3bf6b5f33 to your computer and use it in GitHub Desktop.
Save rotemtam/6a3f626f98fbbac61ebb47d3bf6b5f33 to your computer and use it in GitHub Desktop.
Build script
#!/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