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