feat(action): Create action to deploy with scp command

This commit is contained in:
Fabricio Nogueira 2020-06-01 23:48:15 -03:00
parent da262dad45
commit 4aef88179f
4 changed files with 93 additions and 13 deletions

View file

@ -1,3 +1,7 @@
#!/bin/sh -l
echo "hello $1"
echo -e "${INPUT_KEY}" >__TEMP_INPUT_KEY_FILE
chmod 600 __TEMP_INPUT_KEY_FILE
scp -o StrictHostKeyChecking=no -v -i __TEMP_INPUT_KEY_FILE -P "${INPUT_PORT}" -r ${INPUT_SRC} "${INPUT_USER}"@"${INPUT_HOST}":"${INPUT_REMOTE}"