1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
theorangeone.net-legacy/scripts/ci-deploy.sh

16 lines
331 B
Bash
Executable file

#!/usr/bin/env bash
set -e
RED='tput setaf 1'
NC='tput sgr 0'
YELLOW='tput setaf 3'
GREEN='tput setaf 2'
if [ -z "$CIRCLE_PROJECT_USERNAME"]; then
echo "$($RED)You need to be running on CircleCI to deploy!$($NC)"
exit 1
fi
ssh web@theorangeone.net 'bash -s' < ./scripts/deploy.sh
echo "$($GREEN)Deployment complete!$($NC)"