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