16 lines
300 B
Bash
16 lines
300 B
Bash
|
#!/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
|
||
|
|
||
|
mkdir -p "$deploymentrepo/$SERVICE"
|
||
|
|