From 538b1b70fb0b12603f360a64f1851748ae080902 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 23 Mar 2024 09:39:00 +0100 Subject: [PATCH] ssh,target --- cd-init | 11 ++++++++++- cd-synchronize-output | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/cd-init b/cd-init index 6b41bc8..6091431 100755 --- a/cd-init +++ b/cd-init @@ -1,14 +1,23 @@ +export SSH='cd@de.tilde.link' + +export TARGET="${SSH}:/cd/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}" + +# packages + apt-get install --yes \ 'rsync' \ 'tree' \ +# ssh + mkdir --parents ~/.ssh + echo "${CD}" > ~/.ssh/id_ed25519 unset CD chmod 400 ~/.ssh/id_ed25519 ssh \ -o StrictHostKeyChecking=accept-new \ -'cd@de.tilde.link' \ +"${SSH}" \ -- \ hostname diff --git a/cd-synchronize-output b/cd-synchronize-output index 84eeccc..f21fcfd 100755 --- a/cd-synchronize-output +++ b/cd-synchronize-output @@ -3,4 +3,4 @@ rsync \ --delete-before \ --verbose \ 'out/' \ -"cd@de.tilde.link:/cd/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}/" +"${TARGET}/"