]> git.r.bdr.sh - rbdr/r.bdr.sh/commitdiff
Update CI script
authorRuben Beltran del Rio <redacted>
Wed, 11 May 2022 21:20:53 +0000 (23:20 +0200)
committerRuben Beltran del Rio <redacted>
Wed, 11 May 2022 21:20:53 +0000 (23:20 +0200)
.build.yml
scripts/ci.sh

index 67b6832a87a9167dd8544827c08bf2990012fba1..3c98c39e067862f601b9bf3ee693833daa30483e 100644 (file)
@@ -8,4 +8,6 @@ sources:
 secrets:
   - 21c73f87-a944-4560-a616-2dfd558c72da
 tasks:
-  - upload: make ci
+  - upload: |
+      cd unlimited.pizza
+      make ci
index 5dcfaf3e6ad13ba6d647ccc73f5834a7d3976203..b97ed3b5b5e28f198a17535182a0d77470e13d57 100755 (executable)
@@ -2,13 +2,15 @@
 
 set -xe
 
+touch .env
+
 if [ "$(git rev-parse origin/main)" == "$(git rev-parse HEAD)" ]; then \
         echo "Deploying to Production"
-                               export $S3_BUCKET=unlimited.pizza;
+                               export S3_BUCKET=unlimited.pizza;
                                make environment=production upload
                                exit 0;
 fi
 
 echo "Deploying to Dev"
-export $S3_BUCKET=limited.pizza;
+export S3_BUCKET=limited.pizza;
 make upload