2022-08-14 20:30:09 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
echo "Starting deployment"
|
|
|
|
|
|
|
|
deploymentrepo="$TMP/deployments"
|
|
|
|
|
|
|
|
[ -d $deploymentrepo ] && rm -rf $deploymentrepo
|
|
|
|
|
2022-08-14 22:31:20 +02:00
|
|
|
git clone "$DEPLOYMENTS" $deploymentrepo
|
2022-08-14 20:30:09 +02:00
|
|
|
[ ! -d $deploymentrepo ] && echo "deployments could not be cloned aborting" && exit 1
|
|
|
|
|
2022-08-14 20:41:28 +02:00
|
|
|
echo "$deploymentrepo"
|
|
|
|
|
2022-08-14 20:30:09 +02:00
|
|
|
mkdir -p "$deploymentrepo/$SERVICE"
|
|
|
|
|