From a9d8bedc8137d9e0634f94867cbceb3be63fdaf7 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 23 Mar 2024 10:07:56 +0100 Subject: [PATCH] ssh/id,url --- cd-init | 10 ++++++---- cd-synchronize-output | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cd-init b/cd-init index 373e0cd..055622d 100755 --- a/cd-init +++ b/cd-init @@ -20,8 +20,10 @@ AAAAC3NzaC1lZDI1NTE5AAAAIPHCNcgHlQoiNTXfnUZYvHz9OZwYsmBCrSSV7a7Zche5 # variables -export USER='cd' +export SSH_ID='cd' -export SSH="${USER}@$(basename ${GITHUB_SERVER_URL})" - -export TARGET="${SSH}:/${USER}/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}" +export SSH_URL="\ +${SSH_ID}@$(basename ${GITHUB_SERVER_URL})\ +:\ +/${SSH_ID}/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}\ +" diff --git a/cd-synchronize-output b/cd-synchronize-output index f21fcfd..7040829 100755 --- a/cd-synchronize-output +++ b/cd-synchronize-output @@ -3,4 +3,4 @@ rsync \ --delete-before \ --verbose \ 'out/' \ -"${TARGET}/" +"${SSH_URL}/"