cuddle-rust-service-plan/scripts/start_deployment.sh
2022-08-14 22:18:09 +02:00

18 lines
351 B
Bash
Executable File

#!/bin/bash
set -e
echo "Starting deployment"
deploymentrepo="$TMP/deployments"
[ -d $deploymentrepo ] && rm -rf $deploymentrepo
GIT_SSH_COMMAND="ssh -vvv" git clone "$DEPLOYMENTS" $deploymentrepo
[ ! -d $deploymentrepo ] && echo "deployments could not be cloned aborting" && exit 1
echo "$deploymentrepo"
mkdir -p "$deploymentrepo/$SERVICE"