Add auto deploy
deploy config / Explore-Gitea-Actions (push) Successful in 1m18s
Details
deploy config / Explore-Gitea-Actions (push) Successful in 1m18s
Details
This commit is contained in:
parent
2d9147c314
commit
790fe202c5
|
|
@ -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
|
||||
Loading…
Reference in New Issue