drone script fixes
continuous-integration/drone/push Build is failing Details

production
Override-6 2 years ago
parent 74f448c545
commit 96120c06b7

@ -27,4 +27,4 @@ steps:
path: ./build path: ./build
commands: commands:
- chmod 777 drone/deliver.sh - chmod 777 drone/deliver.sh
- drone/deliver.sh $DRONE_BRANCH - drone/deliver.sh

@ -14,7 +14,7 @@ echo "$SSH_PUBLIC_KEY" > /root/.ssh/id_rsa.pub
chmod 0600 /root/.ssh/* chmod 0600 /root/.ssh/*
chmod 700 /root/.ssh chmod 700 /root/.ssh
case "$1" in case "$DRONE_BRANCH" in
"dev") "dev")
export USER=maxime export USER=maxime
export IP=92.132.18.192 export IP=92.132.18.192
@ -26,7 +26,7 @@ case "$1" in
export DIR=TBasket/backend export DIR=TBasket/backend
;; ;;
"") "")
echo "first argument is missing" >&2 echo "DRONE_BRANCH is missing" >&2
exit 1 exit 1
;; ;;
*) *)