From 96120c06b7d72f3d0b456f42cbafc004ca4af166 Mon Sep 17 00:00:00 2001 From: Override-6 Date: Sun, 4 Dec 2022 17:33:24 +0100 Subject: [PATCH] drone script fixes --- drone/.drone.yml | 2 +- drone/prepare-deliver.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 ;; *)