diff --git a/drone/.drone.yml b/drone/.drone.yml index 48d38b5..3a5a6bc 100644 --- a/drone/.drone.yml +++ b/drone/.drone.yml @@ -27,4 +27,4 @@ steps: path: ./build commands: - chmod 777 drone/deliver.sh - - drone/deliver.sh $DRONE_BRANCH + - drone/deliver.sh diff --git a/drone/prepare-deliver.sh b/drone/prepare-deliver.sh index 43a035d..9839cbf 100644 --- a/drone/prepare-deliver.sh +++ b/drone/prepare-deliver.sh @@ -14,7 +14,7 @@ echo "$SSH_PUBLIC_KEY" > /root/.ssh/id_rsa.pub chmod 0600 /root/.ssh/* chmod 700 /root/.ssh -case "$1" in +case "$DRONE_BRANCH" in "dev") export USER=maxime export IP=92.132.18.192 @@ -26,7 +26,7 @@ case "$1" in export DIR=TBasket/backend ;; "") - echo "first argument is missing" >&2 + echo "DRONE_BRANCH is missing" >&2 exit 1 ;; *)