path fixes
Some checks failed
Activate NixOS Homelab Configuration On Push / build-and-activate (push) Failing after 1m26s
Some checks failed
Activate NixOS Homelab Configuration On Push / build-and-activate (push) Failing after 1m26s
This commit is contained in:
parent
a008b0e806
commit
0bfffe7acb
1 changed files with 7 additions and 4 deletions
|
|
@ -3,19 +3,22 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
env:
|
||||
PATH: /run/current-system/sw/bin:/run/wrappers/bin
|
||||
|
||||
jobs:
|
||||
build-and-activate:
|
||||
runs-on: nixos-server
|
||||
defaults:
|
||||
run:
|
||||
shell: /bin/sh -e {0}
|
||||
steps:
|
||||
- name: Clone
|
||||
shell: /bin/sh -e {0}
|
||||
run: git clone http://localhost:5080/satr14/nix-flake.git src
|
||||
- name: Build
|
||||
shell: /bin/sh -e {0}
|
||||
run: nixos-rebuild build --flake ./src#homelab
|
||||
- name: Activate
|
||||
shell: /bin/sh -e {0}
|
||||
run: sudo nixos-rebuild switch --flake ./src#homelab
|
||||
- name: Clean
|
||||
shell: /bin/sh -e {0}
|
||||
run: rm -rf src
|
||||
Loading…
Add table
Add a link
Reference in a new issue