File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1- FROM docker:24 -dind
1+ FROM docker:28 -dind
22
33RUN apk add --update --no-cache bash sshpass
44
Original file line number Diff line number Diff line change @@ -33,9 +33,11 @@ if [ -z "${INPUT_SSH_KEY}" ];then
3333 ssh-keygen -q -f /root/.ssh/id_rsa -N " " -C " docker-stack-deploy-action"
3434 eval " $( ssh-agent -s) "
3535 ssh-add /root/.ssh/id_rsa
36+ sshpass --help || :
3637 sshpass -p " ${INPUT_PASS} " ssh " ${INPUT_USER} @${INPUT_HOST} " " pwd"
37- sshpass -p " ${INPUT_PASS} " ssh " ${INPUT_USER} @${INPUT_HOST} " " ls -lAh"
38- sshpass -p " ${INPUT_PASS} " ssh " ${INPUT_USER} @${INPUT_HOST} " " ls -lAh .ssh"
38+ sshpass -p " ${INPUT_PASS} " ssh " ${INPUT_USER} @${INPUT_HOST} " " echo ~/.ssh"
39+ sshpass -p " ${INPUT_PASS} " ssh " ${INPUT_USER} @${INPUT_HOST} " " stat ~/.ssh"
40+ sshpass -p " ${INPUT_PASS} " ssh " ${INPUT_USER} @${INPUT_HOST} " " ls -lAh ~/.ssh"
3941 sshpass -p " ${INPUT_PASS} " \
4042 ssh-copy-id -p " ${INPUT_PORT} " -i /root/.ssh/id_rsa \
4143 " ${INPUT_USER} @${INPUT_HOST} "
You can’t perform that action at this time.
0 commit comments