]>
Commit | Line | Data |
---|---|---|
29e93a81 RBR |
1 | #!/usr/bin/env sh |
2 | ||
3 | set -xe | |
4 | ||
c0e61f03 RBR |
5 | exit 1 |
6 | ||
9a0c6654 RBR |
7 | touch .env |
8 | ||
29e93a81 RBR |
9 | if [ "$(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; |
14 | fi | |
15 | ||
16 | echo "Deploying to Dev" | |
9a0c6654 | 17 | export S3_BUCKET=limited.pizza; |
be0c7379 | 18 | sudo make upload |