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}/"