ssh/id,url
This commit is contained in:
parent
f6c0709587
commit
a9d8bedc81
2 changed files with 7 additions and 5 deletions
10
cd-init
10
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}\
|
||||
"
|
||||
|
|
|
@ -3,4 +3,4 @@ rsync \
|
|||
--delete-before \
|
||||
--verbose \
|
||||
'out/' \
|
||||
"${TARGET}/"
|
||||
"${SSH_URL}/"
|
||||
|
|
Loading…
Reference in a new issue