2024-03-23 08:39:00 +00:00
|
|
|
# packages
|
|
|
|
|
2024-03-23 08:32:19 +00:00
|
|
|
apt-get install --yes \
|
|
|
|
'rsync' \
|
|
|
|
'tree' \
|
2024-03-22 23:59:39 +00:00
|
|
|
|
2024-03-23 08:39:00 +00:00
|
|
|
# ssh
|
|
|
|
|
2024-03-23 08:32:19 +00:00
|
|
|
mkdir --parents ~/.ssh
|
2024-03-23 08:39:00 +00:00
|
|
|
|
2024-03-22 23:59:39 +00:00
|
|
|
echo "${CD}" > ~/.ssh/id_ed25519
|
|
|
|
unset CD
|
|
|
|
chmod 400 ~/.ssh/id_ed25519
|
|
|
|
|
2024-03-23 08:52:09 +00:00
|
|
|
echo -n "\
|
|
|
|
|1|BcccCTMLpM9HHSgJmPu/FFOwOv0=|+3BKK02xibpCPxQ9Nghi2GbXLng= \
|
|
|
|
ssh-ed25519 \
|
|
|
|
AAAAC3NzaC1lZDI1NTE5AAAAIPHCNcgHlQoiNTXfnUZYvHz9OZwYsmBCrSSV7a7Zche5
|
|
|
|
" > ~/.ssh/known_hosts
|
|
|
|
|
|
|
|
# variables
|
|
|
|
|
2024-03-23 09:07:56 +00:00
|
|
|
export SSH_ID='cd'
|
2024-03-23 08:52:09 +00:00
|
|
|
|
2024-03-23 09:07:56 +00:00
|
|
|
export SSH_URL="\
|
|
|
|
${SSH_ID}@$(basename ${GITHUB_SERVER_URL})\
|
|
|
|
:\
|
|
|
|
/${SSH_ID}/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}\
|
|
|
|
"
|
2024-03-23 09:18:10 +00:00
|
|
|
echo "${SSH_URL}"
|