]> git.r.bdr.sh - rbdr/r.bdr.sh/blobdiff - scripts/ci.sh
Put the .env in the right placce
[rbdr/r.bdr.sh] / scripts / ci.sh
index 5dcfaf3e6ad13ba6d647ccc73f5834a7d3976203..3dfc7492032da851b2002640e30775d181592d45 100755 (executable)
@@ -2,13 +2,15 @@
 
 set -xe
 
+cp ~/.env .env
+
 if [ "$(git rev-parse origin/main)" == "$(git rev-parse HEAD)" ]; then \
         echo "Deploying to Production"
-                               export $S3_BUCKET=unlimited.pizza;
-                               make environment=production upload
+                               export S3_BUCKET=unlimited.pizza;
+                               sudo make environment=production upload
                                exit 0;
 fi
 
 echo "Deploying to Dev"
-export $S3_BUCKET=limited.pizza;
-make upload
+export S3_BUCKET=limited.pizza;
+sudo make upload