From 42046e6a5caa41d6f5689cb4142c47e360eb88dd Mon Sep 17 00:00:00 2001 From: lubiana Date: Thu, 12 Dec 2024 02:52:19 +0100 Subject: [PATCH] debug show env --- entrypoint.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 658339e..830a41f 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,18 +1,23 @@ #!/bin/sh -l + 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 +echo host: $INPUT_REMOTE_HOST +echo user: $INPUT_REMOTE_USER +echo params: $INPUT_RSYNC_PARAMETERS +echo path: $INPUT_PATH +echo remote_path: $INPUT_REMOTE_PATH # 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 -echo 'ssh-keyscan -H ${INPUT_REMOTE_HOST} >> ~/.ssh/known_hosts' +ssh-keyscan -H ${INPUT_REMOTE_HOST} >> ~/.ssh/known_hosts # SCP files to the remote host -echo 'rsync ${INPUT_RSYNC_PARAMETERS} public/ ${INPUT_REMOTE_USER}@${INPUT_REMOTE_HOST}:${INPUT_REMOTE_PATH}' +#rsync ${INPUT_RSYNC_PARAMETERS} public/ ${INPUT_REMOTE_USER}@${INPUT_REMOTE_HOST}:${INPUT_REMOTE_PATH} exit 0