musikcube/script/copy-artifacts-to-host.sh

13 lines
365 B
Bash
Executable File

#!/bin/bash
if [[ -z "${MUSIKCUBE_BUILD_HOST_IP}" ]]; then
exit
fi
if [[ -z "${MUSIKCUBE_BUILD_HOST_PW}" ]]; then
exit
fi
sshpass -p "${MUSIKCUBE_BUILD_HOST_PW}" scp /root/rpms/* build@${MUSIKCUBE_BUILD_HOST_IP}:/home/build/ 2> /dev/null
sshpass -p "${MUSIKCUBE_BUILD_HOST_PW}" scp /root/debs/* build@${MUSIKCUBE_BUILD_HOST_IP}:/home/build/ 2> /dev/null