ssh/id,url

This commit is contained in:
Marc Beninca 2024-03-23 10:07:56 +01:00
parent f6c0709587
commit a9d8bedc81
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 7 additions and 5 deletions

10
cd-init
View file

@ -20,8 +20,10 @@ AAAAC3NzaC1lZDI1NTE5AAAAIPHCNcgHlQoiNTXfnUZYvHz9OZwYsmBCrSSV7a7Zche5
# variables # variables
export USER='cd' export SSH_ID='cd'
export SSH="${USER}@$(basename ${GITHUB_SERVER_URL})" export SSH_URL="\
${SSH_ID}@$(basename ${GITHUB_SERVER_URL})\
export TARGET="${SSH}:/${USER}/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}" :\
/${SSH_ID}/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}\
"

View file

@ -3,4 +3,4 @@ rsync \
--delete-before \ --delete-before \
--verbose \ --verbose \
'out/' \ 'out/' \
"${TARGET}/" "${SSH_URL}/"