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 update
|
||||||
apt install rsync -y
|
apt install rsync -y
|
||||||
- name: add ssh key
|
- name: add ssh key
|
||||||
run: |
|
uses: actions/ssh-setup@v1
|
||||||
set -e
|
with:
|
||||||
mkdir -p /root/.ssh
|
ssh-key: ${{ secrets.ACTIONS_SSH_KEY }}
|
||||||
ssh-keyscan toufy.me > /root/.ssh/known_hosts
|
add-hosts: "toufy.me"
|
||||||
echo "${{ secrets.ACTIONS_SSH_KEY }}" | tr -d "\r" > /root/.ssh/id_ed25519
|
|
||||||
chmod -R 600 /root/.ssh
|
|
||||||
- name: copy repo to target
|
- name: copy repo to target
|
||||||
run: rsync -az . root@toufy.me:/etc/nixos
|
run: rsync -az . root@toufy.me:/etc/nixos
|
||||||
- name: nixos-rebuild dry-activate
|
- name: nixos-rebuild dry-activate
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue