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