We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b113cb8 commit 287efdbCopy full SHA for 287efdb
src/main.sh
@@ -33,6 +33,8 @@ if [ -z "${INPUT_SSH_KEY}" ];then
33
ssh-keygen -q -f /root/.ssh/id_rsa -N "" -C "docker-stack-deploy-action"
34
eval "$(ssh-agent -s)"
35
ssh-add /root/.ssh/id_rsa
36
+ sshpass -p "${INPUT_PASS}" "${INPUT_USER}@${INPUT_HOST}" "whoami"
37
+ sshpass -p "${INPUT_PASS}" "${INPUT_USER}@${INPUT_HOST}" "hostname"
38
sshpass -p "${INPUT_PASS}" \
39
ssh-copy-id -p "${INPUT_PORT}" -i /root/.ssh/id_rsa \
40
"${INPUT_USER}@${INPUT_HOST}"
0 commit comments