Add auto deploy
deploy config / Explore-Gitea-Actions (push) Successful in 1m18s Details

This commit is contained in:
Tom 2024-08-09 21:55:21 +02:00
parent 2d9147c314
commit 790fe202c5
1 changed files with 4 additions and 3 deletions

View File

@ -4,7 +4,8 @@ on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
runs-on: nginx
steps:
- run: echo ${{ GITEAS_SSH_PRIVATE }} > ~/.ssh/id_ed25519
- run: sshpass -p${{ NGINX_PASSWORD }} ssh -oStrictHostKeyChecking=no root@${{ secrets.NGINX_HOST }} "whoami"
- run: whoami
- run: cd /etc/nixos && git pull
- run: nixos-rebuild switch