We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6847d9c + fb42782 commit 99e6388Copy full SHA for 99e6388
1 file changed
script/compile
@@ -39,3 +39,13 @@ echo $GIT_SHA > ./GIT_SHA
39
echo $GIT_BRANCH >> ./GIT_DESC
40
echo $GIT_DESC >> ./GIT_DESC
41
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