From f3391badf47826b45740132154e1c90877a6110c Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Sun, 15 Dec 2024 15:52:50 -0600 Subject: [PATCH] ci: Update Woodpecker to use Nix --- .woodpecker/build-site.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.woodpecker/build-site.yml b/.woodpecker/build-site.yml index a9d9090..fa525b2 100644 --- a/.woodpecker/build-site.yml +++ b/.woodpecker/build-site.yml @@ -2,20 +2,16 @@ when: branch: "master" steps: - - name: Install Node packages - image: node:18.14.2-slim + - name: Build site + image: nixos/nix:2.24.11 + privileged: true commands: - - npm ci - - name: Build Hugo site - image: peaceiris/hugo:v0.111.3-full - environment: - HUGO_ENV: production - HUGO_ENVIRONMENT: production - commands: - - hugo --minify + - echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf + - echo 'sandbox = true' >> /etc/nix/nix.conf + - nix build - name: Deploy to pages image: codeberg.org/xfix/plugin-codeberg-pages-deploy:1 settings: - folder: public + folder: result ssh_key: from_secret: ssh_key