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

production
Override-6 2 years ago
parent 3bd0662ab0
commit d879e65d63

@ -10,9 +10,9 @@ elif [ "$(command -v yum)" ]; then
yum -y install openssh-client openssh-clients > /dev/null yum -y install openssh-client openssh-clients > /dev/null
elif [ "$(command -v apk)" ]; then elif [ "$(command -v apk)" ]; then
apk update > /dev/null apk update > /dev/null
apk add openssh-client openssh-clients > /dev/null apk add openssh > /dev/null
else else
echo "could not find a package manager, anborting" >&2 echo "could not find a package manager, aborting" >&2
exit 1 exit 1
fi fi
echo "done." echo "done."
@ -37,7 +37,7 @@ case "$DRONE_BRANCH" in
"") "")
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 echo "branch $1 is unable to perform delivery, authorized branches are 'dev and production' for delivery." >&2
echo "delivery step skipped" echo "delivery step skipped"