This commit is contained in:
parent
f3fd07c743
commit
349d5d026a
1 changed files with 3 additions and 5 deletions
|
|
@ -17,17 +17,15 @@ jobs:
|
||||||
mkdir -p ./ssh
|
mkdir -p ./ssh
|
||||||
echo "${{ secrets.DEPLOY_SSH_KEY }}" > ./ssh/deploy_key
|
echo "${{ secrets.DEPLOY_SSH_KEY }}" > ./ssh/deploy_key
|
||||||
chmod 600 ./ssh/deploy_key
|
chmod 600 ./ssh/deploy_key
|
||||||
echo "StrictHostKeyChecking no" > ./ssh/config
|
|
||||||
|
|
||||||
- name: Rebuild
|
- name: Rebuild
|
||||||
run: |
|
run: |
|
||||||
ssh -i ./ssh/deploy_key root@localhost \
|
ssh -i ./ssh/deploy_key -o StrictHostKeyChecking=no root@localhost \
|
||||||
"nixos-rebuild switch \
|
"nixos-rebuild switch --flake git+http://localhost:5080/satr14/nix-flake#homelab -L"
|
||||||
--flake git+http://localhost:5080/satr14/nix-flake#homelab -L"
|
|
||||||
|
|
||||||
- name: Show generation
|
- name: Show generation
|
||||||
if: always()
|
if: always()
|
||||||
run: ssh -i ./ssh/deploy_key root@localhost "nixos-version"
|
run: ssh -i ./ssh/deploy_key -o StrictHostKeyChecking=no root@localhost "nixos-version"
|
||||||
|
|
||||||
- name: Clean Up
|
- name: Clean Up
|
||||||
if: always()
|
if: always()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue