woodpecker-scp/plugin.sh

6 lines
205 B
Bash
Raw Permalink Normal View History

2023-12-29 10:33:01 +00:00
#!/bin/sh
mkdir -p /root/.ssh
echo "${PLUGIN_SSH_KEY}" > "/root/.ssh/id_rsa"
echo "${PLUGIN_SSH_KNOWN_HOSTS}" > "/root/.ssh/known_hosts"
scp -B ${PLUGIN_EXTRA_FLAGS} ${PLUGIN_SOURCE} ${PLUGIN_DESTINATION}