Skip to content

Commit 99e6388

Browse files
committed
Merge pull request apache#69 from Shopify/s3-upload
Upload a tar of our spark to s3
2 parents 6847d9c + fb42782 commit 99e6388

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

script/compile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,13 @@ echo $GIT_SHA > ./GIT_SHA
3939
echo $GIT_BRANCH >> ./GIT_DESC
4040
echo $GIT_DESC >> ./GIT_DESC
4141
echo $GIT_HUMAN >> ./GIT_DESC
42+
43+
# Tar the local dir and upload it to s3 for public (passwordless) consumption
44+
# Packserv also builds this tar after the fact but we need the tar to be accessible everywhere
45+
# and it has nothing sensitive in it, so we just upload it so we don't need to store the
46+
# much more sensitive packserv password everywhere we want to fetch spark.
47+
S3_TAR=/tmp/spark-$GIT_SHA.tgz
48+
tar -c -z --exclude=.git -f $S3_TAR .
49+
ls -lA /etc
50+
s3cmd --config=/etc/packserv-spark-s3cmd.cfg --acl-public put $S3_TAR s3://shopify-sparks/
51+
rm $S3_TAR

0 commit comments

Comments
 (0)