Compare commits
7 commits
803c7d68ce
...
5e207a5762
Author | SHA1 | Date | |
---|---|---|---|
5e207a5762 | |||
6fb2a0cc90 | |||
f0f09b2fb3 | |||
4ee73188e3 | |||
77d9cd1915 | |||
2a002a714a | |||
52cac591c8 |
9 changed files with 22 additions and 19 deletions
11
cd-init
Executable file
11
cd-init
Executable 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
1
cd-install
Executable file
|
@ -0,0 +1 @@
|
||||||
|
apt-get install "${@}"
|
2
cd-list-environment
Executable file
2
cd-list-environment
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
unset TOP_SECRET
|
||||||
|
env | sort
|
8
cd-synchronize-output
Executable file
8
cd-synchronize-output
Executable 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
1
env
|
@ -1 +0,0 @@
|
||||||
env | sort
|
|
18
sync
18
sync
|
@ -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}/"
|
|
Loading…
Reference in a new issue