Build the site as a Nix package, with a NixOS module to serve it
packages.default is the built site; nixosModules.default (services.blog) serves it from an nginx virtual host on a port, for Traefik to proxy. The servers will take it from here instead of the container image. CI now builds the package, so a change that breaks it never reaches main. The container deploy stays until the NixOS service has taken over. Assisted-by: Claude:opus-5-5
This commit is contained in:
parent
bac90e46ec
commit
f4c1887a42
2 changed files with 68 additions and 9 deletions
|
|
@ -26,8 +26,8 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
|
||||
- name: Build site
|
||||
run: nix develop -c zola build
|
||||
- name: Build site (the package nginx serves)
|
||||
run: nix build .#default
|
||||
|
||||
build:
|
||||
runs-on: arch-latest
|
||||
|
|
|
|||
|
|
@ -24,5 +24,5 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
|
||||
- name: Build site
|
||||
run: nix develop -c zola build
|
||||
- name: Build site (the package nginx serves)
|
||||
run: nix build .#default
|
||||
|
|
|
|||
Loading…
Reference in a new issue