Created
December 28, 2018 00:29
-
-
Save noboomu/33f2edce6ff1af70d661b21245e84774 to your computer and use it in GitHub Desktop.
Container Deploy from S3 Script
This file contains 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 | |
aws s3 cp s3://$BUCKET_NAME/$ARCHIVE_KEY . | |
echo "Extracting project" | |
DIRECTORY_NAME=`tar -tf $ARCHIVE_NAME | sed -e 's@/.*@@' | uniq` | |
tar -zxvf ./$ARCHIVE_NAME | |
cd $DIRECTORY_NAME | |
./scripts/start.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment