ci: Update Woodpecker to use Nix
Some checks failed
ci/woodpecker/manual/build-site Pipeline failed

This commit is contained in:
Thomas A. Christensen II 2024-12-15 15:52:50 -06:00
parent 0375dcf6e0
commit f3391badf4
Signed by: millironx
GPG key ID: 19A2EF3A3C0C18A9

View file

@ -2,20 +2,16 @@ when:
branch: "master" branch: "master"
steps: steps:
- name: Install Node packages - name: Build site
image: node:18.14.2-slim image: nixos/nix:2.24.11
privileged: true
commands: commands:
- npm ci - echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
- name: Build Hugo site - echo 'sandbox = true' >> /etc/nix/nix.conf
image: peaceiris/hugo:v0.111.3-full - nix build
environment:
HUGO_ENV: production
HUGO_ENVIRONMENT: production
commands:
- hugo --minify
- name: Deploy to pages - name: Deploy to pages
image: codeberg.org/xfix/plugin-codeberg-pages-deploy:1 image: codeberg.org/xfix/plugin-codeberg-pages-deploy:1
settings: settings:
folder: public folder: result
ssh_key: ssh_key:
from_secret: ssh_key from_secret: ssh_key