From: Ruben Beltran del Rio Date: Wed, 11 May 2022 21:20:53 +0000 (+0200) Subject: Update CI script X-Git-Url: https://git.r.bdr.sh/rbdr/r.bdr.sh/commitdiff_plain/9a0c66549d4fc8b37af5c3183cf6326f0aa49681 Update CI script --- diff --git a/.build.yml b/.build.yml index 67b6832..3c98c39 100644 --- a/.build.yml +++ b/.build.yml @@ -8,4 +8,6 @@ sources: secrets: - 21c73f87-a944-4560-a616-2dfd558c72da tasks: - - upload: make ci + - upload: | + cd unlimited.pizza + make ci diff --git a/scripts/ci.sh b/scripts/ci.sh index 5dcfaf3..b97ed3b 100755 --- a/scripts/ci.sh +++ b/scripts/ci.sh @@ -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