This commit is contained in:
parent
30daa0b3cc
commit
f3fd07c743
1 changed files with 4 additions and 1 deletions
|
|
@ -5,6 +5,9 @@ on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
PATH: /run/current-system/sw/bin:/run/wrappers/bin
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
rebuild:
|
rebuild:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
|
|
@ -16,7 +19,7 @@ jobs:
|
||||||
chmod 600 ./ssh/deploy_key
|
chmod 600 ./ssh/deploy_key
|
||||||
echo "StrictHostKeyChecking no" > ./ssh/config
|
echo "StrictHostKeyChecking no" > ./ssh/config
|
||||||
|
|
||||||
- name: Rebuild (${{ github.event.inputs.action || 'switch' }})
|
- name: Rebuild
|
||||||
run: |
|
run: |
|
||||||
ssh -i ./ssh/deploy_key root@localhost \
|
ssh -i ./ssh/deploy_key root@localhost \
|
||||||
"nixos-rebuild switch \
|
"nixos-rebuild switch \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue