This commit is contained in:
parent
900e7a7b01
commit
61d5463500
2 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ jobs:
|
||||||
set -e
|
set -e
|
||||||
mkdir -p /root/.ssh
|
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
|
echo "${{ secrets.ACTIONS_SSH_KEY }}" | tr -d "\r" > /root/.ssh/id_ed25519
|
||||||
chmod -R 600 /root/.ssh
|
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
|
||||||
|
|
|
||||||
|
|
@ -20,4 +20,4 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
git diff --exit-code flake.lock && exit 0 || echo ""
|
git diff --exit-code flake.lock && exit 0 || echo ""
|
||||||
git commit -m "update flake.lock"
|
git commit -m "update flake.lock"
|
||||||
git push "https://actions_user:${{ secrets.WRITE_TOKEN }}@git.toufy.me/toufy/adonis" "main"
|
git push "https://actions_user:${{ secrets.ACTIONS_USER_TOKEN }}@git.toufy.me/toufy/adonis" "main"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue