This commit is contained in:
parent
61d5463500
commit
ee456b274e
1 changed files with 4 additions and 6 deletions
|
|
@ -14,12 +14,10 @@ jobs:
|
|||
apt update
|
||||
apt install rsync -y
|
||||
- name: add ssh key
|
||||
run: |
|
||||
set -e
|
||||
mkdir -p /root/.ssh
|
||||
ssh-keyscan toufy.me > /root/.ssh/known_hosts
|
||||
echo "${{ secrets.ACTIONS_SSH_KEY }}" | tr -d "\r" > /root/.ssh/id_ed25519
|
||||
chmod -R 600 /root/.ssh
|
||||
uses: actions/ssh-setup@v1
|
||||
with:
|
||||
ssh-key: ${{ secrets.ACTIONS_SSH_KEY }}
|
||||
add-hosts: "toufy.me"
|
||||
- name: copy repo to target
|
||||
run: rsync -az . root@toufy.me:/etc/nixos
|
||||
- name: nixos-rebuild dry-activate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue