spcd/cd-synchronize-output

20 lines
343 B
Text
Raw Normal View History

2024-03-22 22:52:19 +00:00
apt-get install --yes 'rsync'
2024-03-22 22:45:25 +00:00
mkdir --parents ~/.ssh
echo '${{secrets.cd}}' > ~/.ssh/id_ed25519
chmod 400 ~/.ssh/id_ed25519
2024-03-22 23:21:07 +00:00
ls -al ~/.ssh
2024-03-22 22:45:25 +00:00
ssh \
-o StrictHostKeyChecking=accept-new \
2024-03-22 22:52:19 +00:00
'cd@de.tilde.link' \
-- \
hostname
2024-03-22 22:45:25 +00:00
rsync \
--archive \
--delete-before \
--verbose \
'out/' \
"cd@de.tilde.link:/cd/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}/"