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