Compare commits

...

4 commits

Author SHA1 Message Date
f6c0709587
user,ssh,target 2024-03-23 10:00:05 +01:00
4ac2b666df
known_hosts 2024-03-23 09:52:09 +01:00
538b1b70fb
ssh,target 2024-03-23 09:39:00 +01:00
a540e0316f
installs 2024-03-23 09:32:19 +01:00
3 changed files with 22 additions and 9 deletions

View file

@ -1,2 +1 @@
apt-get install 'tree'
tree -a "${GITHUB_WORKSPACE}" tree -a "${GITHUB_WORKSPACE}"

26
cd-init
View file

@ -1,11 +1,27 @@
# packages
apt-get install --yes \
'rsync' \
'tree' \
# ssh
mkdir --parents ~/.ssh mkdir --parents ~/.ssh
echo "${CD}" > ~/.ssh/id_ed25519 echo "${CD}" > ~/.ssh/id_ed25519
unset CD unset CD
chmod 400 ~/.ssh/id_ed25519 chmod 400 ~/.ssh/id_ed25519
ssh \ echo -n "\
-o StrictHostKeyChecking=accept-new \ |1|BcccCTMLpM9HHSgJmPu/FFOwOv0=|+3BKK02xibpCPxQ9Nghi2GbXLng= \
'cd@de.tilde.link' \ ssh-ed25519 \
-- \ AAAAC3NzaC1lZDI1NTE5AAAAIPHCNcgHlQoiNTXfnUZYvHz9OZwYsmBCrSSV7a7Zche5
hostname " > ~/.ssh/known_hosts
# variables
export USER='cd'
export SSH="${USER}@$(basename ${GITHUB_SERVER_URL})"
export TARGET="${SSH}:/${USER}/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}"

View file

@ -1,8 +1,6 @@
apt-get install --yes 'rsync'
rsync \ rsync \
--archive \ --archive \
--delete-before \ --delete-before \
--verbose \ --verbose \
'out/' \ 'out/' \
"cd@de.tilde.link:/cd/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}/" "${TARGET}/"