ci tidyup

This commit is contained in:
mwiegand 2022-03-13 18:22:24 +01:00
parent b205bd7555
commit 09ca6bddf6

View file

@ -11,15 +11,12 @@ SSH_OPTIONS='-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'
for INTEGRATION in "$(cat $CONFIG_PATH | jq -r '.ci | values[]')"
do
echo '-----------------------'
echo $INTEGRATION
[[ $(jq -r '.repo' <<< $INTEGRATION) = $REPO_NAME ]] || continue
HOSTNAME=$(jq -r '.hostname' <<< $INTEGRATION)
DESTINATION_PATH=$(jq -r '.path' <<< $INTEGRATION)
DESTINATION_GROUP=$(jq -r '.group' <<< $INTEGRATION)
[[ -z "$HOSTNAME" ]] || [[ -z "$DESTINATION_PATH" ]] || [[ -z "$DESTINATION_GROUP" ]] && exit 5
cd ~