Skip to content
Snippets Groups Projects
Commit 2fc1f9b4 authored by nimrod's avatar nimrod
Browse files

Allow deploying to some of the hosts.

parent ef547f4e
Branches
No related tags found
No related merge requests found
Pipeline #551 passed
......@@ -31,19 +31,25 @@ then
exit 1
fi
case "${1:-all}" in
ns4) export REGISTER_RUN_UNTAGGED="true"
export BUILDS='/builds'
_deploy ns4.shore.co.il
;;
kodi) export REGISTER_RUN_UNTAGGED="false"
unset BUILDS
_deploy kodi.shore.co.il
;;
host01) export REGISTER_RUN_UNTAGGED="false"
unset BUILDS
_deploy host01.shore.co.il
;;
all) "$0" ns4; "$0" host01; "$0" kodi ;;
*) echo 'Unknown host.' >&2; exit 1;;
esac
[ "$#" -eq '0' ] && "$0" ns4 host01 kodi
for i in "$@"
do
case "$i" in
ns4) export REGISTER_RUN_UNTAGGED="true"
export BUILDS='/builds'
_deploy ns4.shore.co.il
;;
kodi) export REGISTER_RUN_UNTAGGED="false"
unset BUILDS
_deploy kodi.shore.co.il
;;
host01) export REGISTER_RUN_UNTAGGED="false"
unset BUILDS
_deploy host01.shore.co.il
;;
all) "$0" ns4 host01 kodi ;;
*) echo 'Unknown host.' >&2; exit 1;;
esac
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment