This commit is contained in:
parent
5286f6b45e
commit
fe3c6d1fd7
1 changed files with 4 additions and 9 deletions
|
|
@ -13,20 +13,15 @@ jobs:
|
|||
set -e
|
||||
apt update
|
||||
apt install rsync -y
|
||||
- name: test fake key
|
||||
run: |
|
||||
echo "${{ secrets.FAKE_KEY }}" | tr -d "\r" > ./fake
|
||||
chmod -R 600 ./fake
|
||||
ssh-keygen -y -f ./fake
|
||||
exit 1
|
||||
- name: add ssh key
|
||||
run: |
|
||||
set -e
|
||||
mkdir -p /root/.ssh
|
||||
ssh-keyscan toufy.me >> /root/.ssh/known_hosts
|
||||
ssh-keyscan toufy.me > /root/.ssh/known_hosts
|
||||
echo "${{ secrets.SSH_KEY }}" | tr -d "\r" > /root/.ssh/id_ed25519
|
||||
chmod -R 600 /root/.ssh
|
||||
eval $(ssh-agent -s)
|
||||
echo "${{ secrets.SSH_KEY }}" | tr -d "\r" | ssh-add -
|
||||
echo "pubkey: "
|
||||
ssh-keygen -y -f /root/.ssh/id_ed25519
|
||||
- name: copy repo to target
|
||||
run: rsync -az . root@toufy.me:/tmp/deploy
|
||||
- name: nixos-rebuild test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue