beerday/scripts/start_deployment.sh
kjuulh 9cca1cfacc
Some checks failed
continuous-integration/drone/push Build is failing
added scripts
2022-08-26 08:20:37 +02:00

18 lines
324 B
Bash
Executable File

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