23 lines
326 B
Text
Executable file
23 lines
326 B
Text
Executable file
export SSH='cd@de.tilde.link'
|
|
|
|
export TARGET="${SSH}:/cd/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}"
|
|
|
|
# packages
|
|
|
|
apt-get install --yes \
|
|
'rsync' \
|
|
'tree' \
|
|
|
|
# ssh
|
|
|
|
mkdir --parents ~/.ssh
|
|
|
|
echo "${CD}" > ~/.ssh/id_ed25519
|
|
unset CD
|
|
chmod 400 ~/.ssh/id_ed25519
|
|
|
|
ssh \
|
|
-o StrictHostKeyChecking=accept-new \
|
|
"${SSH}" \
|
|
-- \
|
|
hostname
|