From f6c0709587741a3ca4fe6df3587d43816dcc720a Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 23 Mar 2024 10:00:05 +0100 Subject: [PATCH] user,ssh,target --- cd-init | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cd-init b/cd-init index 79a9a46..373e0cd 100755 --- a/cd-init +++ b/cd-init @@ -20,6 +20,8 @@ AAAAC3NzaC1lZDI1NTE5AAAAIPHCNcgHlQoiNTXfnUZYvHz9OZwYsmBCrSSV7a7Zche5 # variables -export SSH="cd@de.tilde.link" +export USER='cd' -export TARGET="${SSH}:/cd/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}" +export SSH="${USER}@$(basename ${GITHUB_SERVER_URL})" + +export TARGET="${SSH}:/${USER}/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}"