Compare commits

..

No commits in common. "f6c0709587741a3ca4fe6df3587d43816dcc720a" and "5ee030a3e51eda42d3b1a613574845fcff718eee" have entirely different histories.

3 changed files with 9 additions and 22 deletions

View file

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

26
cd-init
View file

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

View file

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