spcd/cd-init

24 lines
326 B
Text
Raw Normal View History

2024-03-23 08:39:00 +00:00
export SSH='cd@de.tilde.link'
export TARGET="${SSH}:/cd/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}"
# 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
ssh \
-o StrictHostKeyChecking=accept-new \
2024-03-23 08:39:00 +00:00
"${SSH}" \
2024-03-22 23:59:39 +00:00
-- \
hostname