]> git.r.bdr.sh - rbdr/r.bdr.sh/blobdiff - scripts/ci.sh
Add local development
[rbdr/r.bdr.sh] / scripts / ci.sh
index 5dcfaf3e6ad13ba6d647ccc73f5834a7d3976203..9054b5dd348b7e8f0f06f9e9a88f3d64b792e8f9 100755 (executable)
@@ -2,13 +2,15 @@
 
 set -xe
 
 
 set -xe
 
+touch .env
+
 if [ "$(git rev-parse origin/main)" == "$(git rev-parse HEAD)" ]; then \
         echo "Deploying to Production"
 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"
                                exit 0;
 fi
 
 echo "Deploying to Dev"
-export $S3_BUCKET=limited.pizza;
-make upload
+export S3_BUCKET=limited.pizza;
+sudo make upload