Last active
March 28, 2019 03:30
-
-
Save kunday/c803b8185532f1d9725a54defa6d1aa7 to your computer and use it in GitHub Desktop.
Generate Package using docker-compose and zip
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
| #!/usr/bin/env bash | |
| set -ex | |
| echo "Generating artifacts using docker-compose" | |
| docker-compose up package | |
| echo "Generating lambda_function.zip artifact" | |
| (cd tmp && zip -r9 ../package/lambda_function.zip *) | |
| echo "Cleaning up cache now" | |
| rm -rf tmp/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment