Created
April 14, 2015 07:17
-
-
Save eyalgo/01c18a25c285e4e6d798 to your computer and use it in GitHub Desktop.
A small shell script that shows how to upload file to S3. Usage can be for ELB
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/sh | |
if [ -z "$1" ]; then echo "Please add build number"; exit; fi | |
rm confirmedBuild | |
touch confirmedBuild | |
echo $1 > confirmedBuild | |
# /usr/bin/s3cmd is where the s3 command tool locates | |
/usr/bin/s3cmd put confirmedBuild s3://<bucket name>/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment