Skip to content

Commit c0c79cf

Browse files
committed
Hmm
1 parent 3217351 commit c0c79cf

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM docker:24-dind
1+
FROM docker:28-dind
22

33
RUN apk add --update --no-cache bash sshpass
44

src/main.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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}"

0 commit comments

Comments
 (0)