Build the site as a Nix package, with a NixOS module to serve it
All checks were successful
Test / check (push) Successful in 6s
Build and Deploy to Production / check (push) Successful in 6s
Build and Deploy to Production / build (push) Successful in 9s
Build and Deploy to Production / deploy (push) Successful in 27s

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:
Sergei Poljanski 2026-11-17 12:17:53 +04:00
commit f4c1887a42
Signed by: asxpi
GPG key ID: 4F8851660FA4121B
2 changed files with 68 additions and 9 deletions

View file

@ -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

View file

@ -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