Compare commits

...

7 commits

Author SHA1 Message Date
5e207a5762
project 2024-03-23 01:17:40 +01:00
6fb2a0cc90
init 2024-03-23 01:14:45 +01:00
f0f09b2fb3
install 2024-03-23 01:07:13 +01:00
4ee73188e3
ssh 2024-03-23 00:59:39 +01:00
77d9cd1915
debug 2024-03-23 00:34:34 +01:00
2a002a714a
debug 2024-03-23 00:21:07 +01:00
52cac591c8
mv 2024-03-23 00:14:11 +01:00
9 changed files with 22 additions and 19 deletions

11
cd-init Executable file
View file

@ -0,0 +1,11 @@
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

1
cd-install Executable file
View file

@ -0,0 +1 @@
apt-get install "${@}"

2
cd-list-environment Executable file
View file

@ -0,0 +1,2 @@
unset TOP_SECRET
env | sort

8
cd-synchronize-output Executable file
View file

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

1
env
View file

@ -1 +0,0 @@
env | sort

18
sync
View file

@ -1,18 +0,0 @@
apt-get install --yes 'rsync'
mkdir --parents ~/.ssh
echo '${{secrets.cd}}' > ~/.ssh/id_ed25519
chmod 400 ~/.ssh/id_ed25519
ssh \
-o StrictHostKeyChecking=accept-new \
'cd@de.tilde.link' \
-- \
hostname
rsync \
--archive \
--delete-before \
--verbose \
'out/' \
"cd@de.tilde.link:/cd/${GITHUB_REF_NAME}/${GITHUB_REPOSITORY}/"