Commit 2fc1f9b4 authored by nimrod's avatar nimrod
Browse files

Allow deploying to some of the hosts.

parent ef547f4e
Loading
Loading
Loading
Loading
Loading
+22 −16
Original line number Diff line number Diff line
@@ -31,7 +31,12 @@ then
    exit 1
fi

case "${1:-all}" in

[ "$#" -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
@@ -44,6 +49,7 @@ case "${1:-all}" in
            unset BUILDS
            _deploy host01.shore.co.il
            ;;
    all) "$0" ns4; "$0" host01; "$0" kodi ;;
        all) "$0" ns4 host01 kodi ;;
        *) echo 'Unknown host.' >&2; exit 1;;
    esac
done