]> git.r.bdr.sh - rbdr/r.bdr.sh/blob - scripts/ci.sh
83e7551252c0b246ede682165af3b8dd5645055d
[rbdr/r.bdr.sh] / scripts / ci.sh
1 #!/usr/bin/env sh
2
3 set -xe
4
5 exit 1
6
7 touch .env
8
9 if [ "$(git rev-parse origin/main)" == "$(git rev-parse HEAD)" ]; then \
10 echo "Deploying to Production"
11 export S3_BUCKET=unlimited.pizza;
12 sudo make environment=production upload
13 exit 0;
14 fi
15
16 echo "Deploying to Dev"
17 export S3_BUCKET=limited.pizza;
18 sudo make upload