feat: Add scp plugin build
This commit is contained in:
parent
574418e870
commit
194ef1634c
3 changed files with 20 additions and 0 deletions
6
plugin.sh
Normal file
6
plugin.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/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}
|
Loading…
Add table
Add a link
Reference in a new issue