tools: Consolidate upload() function

Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
Matt Turner 2021-01-30 20:02:35 -05:00
parent 8f478fe30b
commit 7ec486fab4
15 changed files with 23 additions and 257 deletions

View file

@ -34,23 +34,6 @@ update_symlinks() {
done
}
upload() {
local SSH_CMD=(
ssh
-i ${UPLOAD_KEY}
-o UserKnownHostsFile=/dev/null
-o VerifyHostKeyDNS=yes
-o StrictHostKeyChecking=no
)
local RSYNC_OPTS=(
-e "${SSH_CMD[*]}"
--archive
--omit-dir-times
--delay-updates
)
rsync "${RSYNC_OPTS[@]}" "$@" ${UPLOAD_USER}@releng-incoming.gentoo.org:${UPLOAD_DEST}
}
post_build() {
local set=$1 spec=$2