woodpecker-scp/plugin.sh
Andreas Mieke 2648c4c9a5
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix: Make scp verbose, so progress can be tracked
2023-12-29 13:28:13 +01:00

8 lines
269 B
Bash

#!/bin/sh
mkdir -p /root/.ssh
echo "${PLUGIN_SSH_KEY}" > "/root/.ssh/id_rsa"
chmod 0600 /root/.ssh/id_rsa
echo "${PLUGIN_SSH_KNOWN_HOSTS}" > "/root/.ssh/known_hosts"
chmod 0600 /root/.ssh/known_hosts
scp -Bv ${PLUGIN_EXTRA_FLAGS} ${PLUGIN_SOURCE} ${PLUGIN_DESTINATION}