change token path and add workflow file
Some checks failed
Activate NixOS Configuration On Push / deploy (push) Failing after 13s
Some checks failed
Activate NixOS Configuration On Push / deploy (push) Failing after 13s
This commit is contained in:
parent
6d46ec1d54
commit
b1406939d2
2 changed files with 14 additions and 1 deletions
13
.forgejo/workflows/activate.yml
Normal file
13
.forgejo/workflows/activate.yml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
name: Activate NixOS Configuration On Push
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: nixos-server
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Build and activate system
|
||||
run: sudo nixos-rebuild switch --flake .#homelab
|
||||
|
|
@ -58,7 +58,7 @@
|
|||
enable = true;
|
||||
name = "nixos-server-runner";
|
||||
url = "https://git.proxy.${homelab.domain}";
|
||||
tokenFile = "/mnt/data/forgejo/runner/nixos_deploy_runner_token";
|
||||
tokenFile = "/root/forgejo-token-runner";
|
||||
labels = [ "nixos-server" ];
|
||||
hostPackages = with pkgs; [ bash coreutils git nix ];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue