From 7f8bcc8438e7570489b3748cc53286a1add9018e Mon Sep 17 00:00:00 2001 From: lubiana Date: Thu, 12 Dec 2024 02:43:59 +0100 Subject: [PATCH] debug show env --- entrypoint.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 0c94207..658339e 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,17 +1,18 @@ #!/bin/sh -l -env mkdir -p ~/.ssh/ # Print the SSH key, replacing newline characters with actual new lines -echo "$INPUT_REMOTE_KEY" | tr -d '\r' > ~/.ssh/id_rsa +echo ${INPUT_REMOTE_KEY} | tr -d '\r' > ~/.ssh/id_rsa + +cat ~/.ssh/id_rsa # Set appropriate permissions for the SSH key chmod 600 ~/.ssh/id_rsa # Add the remote host's key to the known_hosts file to avoid authenticity confirmation -ssh-keyscan -H $INPUT_REMOTE_HOST >> ~/.ssh/known_hosts +echo 'ssh-keyscan -H ${INPUT_REMOTE_HOST} >> ~/.ssh/known_hosts' # SCP files to the remote host -#rsync ${INPUT_RSYNC_PARAMETERS} public/ ${INPUT_REMOTE_USER}@${INPUT_REMOTE_HOST}:${INPUT_REMOTE_PATH} +echo 'rsync ${INPUT_RSYNC_PARAMETERS} public/ ${INPUT_REMOTE_USER}@${INPUT_REMOTE_HOST}:${INPUT_REMOTE_PATH}' exit 0