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:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
|
env:
|
||||||
|
PATH: /run/current-system/sw/bin:/run/wrappers/bin
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-activate:
|
build-and-activate:
|
||||||
runs-on: nixos-server
|
runs-on: nixos-server
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: /bin/sh -e {0}
|
||||||
steps:
|
steps:
|
||||||
- name: Clone
|
- name: Clone
|
||||||
shell: /bin/sh -e {0}
|
|
||||||
run: git clone http://localhost:5080/satr14/nix-flake.git src
|
run: git clone http://localhost:5080/satr14/nix-flake.git src
|
||||||
- name: Build
|
- name: Build
|
||||||
shell: /bin/sh -e {0}
|
|
||||||
run: nixos-rebuild build --flake ./src#homelab
|
run: nixos-rebuild build --flake ./src#homelab
|
||||||
- name: Activate
|
- name: Activate
|
||||||
shell: /bin/sh -e {0}
|
|
||||||
run: sudo nixos-rebuild switch --flake ./src#homelab
|
run: sudo nixos-rebuild switch --flake ./src#homelab
|
||||||
- name: Clean
|
- name: Clean
|
||||||
shell: /bin/sh -e {0}
|
|
||||||
run: rm -rf src
|
run: rm -rf src
|
||||||
Loading…
Add table
Add a link
Reference in a new issue