From 15cc0c07e0da4a8a1c476eddee0318825e08ee94 Mon Sep 17 00:00:00 2001 From: Override-6 Date: Sun, 4 Dec 2022 21:29:37 +0100 Subject: [PATCH] updated ci scripts --- drone/deliver.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drone/deliver.sh b/drone/deliver.sh index 80b43f3..c2a33e8 100755 --- a/drone/deliver.sh +++ b/drone/deliver.sh @@ -14,7 +14,6 @@ case "$DRONE_BRANCH" in ;; esac -APP_DIR="/home/maxime/server/TBasket/application" case "$TYPE" in "android") @@ -39,7 +38,6 @@ case "$TYPE" in ;; esac -SERV_DIR="$APP_DIR/$TYPE" #install cordova apk add npm @@ -52,6 +50,8 @@ echo "delivering outputs on server" #prepare ssh / scp commands curl https://codefirst.iut.uca.fr/git/Tactique-basket/Backend/raw/branch/dev/drone/prepare-deliver.sh > /tmp/prepare-deliver.sh source /tmp/prepare-deliver.sh +SERV_DIR="$DIR/application/$TYPE" -echo "making delivery onto '$USER@$IP:$DIR'" -scp -o "StrictHostKeyChecking no" "$OUT_DIR" "$USER@$IP:$SERV_DIR" \ No newline at end of file +echo "making delivery onto '$USER@$IP:$DIR/application'" +ls $OUT_DIR +scp -o "StrictHostKeyChecking no" -r "$OUT_DIR" "$USER@$IP:$DIR/application" \ No newline at end of file