updating drone

drone-setup
Maxime BATISTA 2 years ago
parent 3c3bcc7551
commit 51cbd34cce

@ -14,6 +14,7 @@ steps:
commands:
- bash drone/deliver.sh android
- bash drone/android-sign.sh
- name: Electron
image: override6/tbasket-frontend
environment:
@ -21,6 +22,7 @@ steps:
from_secret: SSH_PRIVATE
SSH_PUBLIC_KEY:
from_secret: SSH_PUBLIC
commands:
- bash drone/deliver.sh electron
- name: Web

@ -34,6 +34,7 @@ case "$TYPE" in
"browser")
OUT_DIR="platforms/browser/www/*"
SERV_DIR="/server/apache/TBasket/"
tree -d || ls
;;
"electron")
OUT_DIR="platforms/electron/build"
@ -54,4 +55,7 @@ echo "delivering outputs on server"
echo "making delivery onto '$USER@$IP:$SERV_DIR'"
scp -o "StrictHostKeyChecking no" -r "$OUT_DIR" "$USER@$IP:$SERV_DIR"
rsync -avz -I \
--rsync-path="mkdir -p \"$SERV_DIR\" && rsync" \
-e "ssh -o StrictHostKeyChecking=no" \
--delete "$OUT_DIR" "$USER@$IP"