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