From 2fc1f9b476a3cf5a1dbcc55a834ed2e4b8a55bf0 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Fri, 22 Jan 2021 21:56:28 +0200 Subject: [PATCH] Allow deploying to some of the hosts. --- deploy | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/deploy b/deploy index 4c175e1..58e5f73 100755 --- a/deploy +++ b/deploy @@ -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 -- GitLab