updated deliver requirements

drone-setup
Override-6 2 years ago
parent be04c932c1
commit f574b5742f

@ -7,22 +7,17 @@ chmod 700 /root/.ssh
chmod 700 /root chmod 700 /root
case "$DRONE_BRANCH" in case "$DRONE_BRANCH" in
"dev")
USER=tbasket-dev
IP=92.132.64.175
DIR=/server/TBasket
;;
"production") "production")
USER=mabatista1 export USER=mabatista1
IP=lisbonne.iut-clermont.uca.fr export IP=lisbonne.iut-clermont.uca.fr
DIR=tbasket export DIR=tbasket
;; ;;
"") "")
echo '$DRONE_BRANCH is missing' >&2 echo '$DRONE_BRANCH is missing' >&2
exit 1 exit 1
;; ;;
*) *)
echo "branch $1 is unable to perform delivery, authorized branches are 'dev and production' for delivery." >&2 export USER=tbasket-dev
echo "delivery step skipped" export IP=92.132.64.175
exit 0 export DIR=/server/TBasket
esac esac