Compare commits
4 commits
5ee030a3e5
...
f6c0709587
Author | SHA1 | Date | |
---|---|---|---|
f6c0709587 | |||
4ac2b666df | |||
538b1b70fb | |||
a540e0316f |
3 changed files with 22 additions and 9 deletions
|
@ -1,2 +1 @@
|
|||
apt-get install 'tree'
|
||||
tree -a "${GITHUB_WORKSPACE}"
|
||||
|
|
26
cd-init
26
cd-init
|
@ -1,11 +1,27 @@
|
|||
# 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 \
|
||||
'cd@de.tilde.link' \
|
||||
-- \
|
||||
hostname
|
||||
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}"
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
apt-get install --yes 'rsync'
|
||||
|
||||
rsync \
|
||||
--archive \
|
||||
--delete-before \
|
||||
--verbose \
|
||||
'out/' \
|
||||
"cd@de.tilde.link:/cd/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}/"
|
||||
"${TARGET}/"
|
||||
|
|
Loading…
Reference in a new issue