[Git][reproducible-builds/reproducible-website][push-ttprxvnmqsrx] ci: experimentation with nix

Pol Dellaiera (@drupol) gitlab at salsa.debian.org
Sun Oct 13 20:11:52 UTC 2024



Pol Dellaiera pushed to branch push-ttprxvnmqsrx at Reproducible Builds / reproducible-website


Commits:
56428c99 by Pol Dellaiera at 2024-10-13T22:11:42+02:00
ci: experimentation with nix

- - - - -


1 changed file:

- .gitlab-ci.yml


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -1,15 +1,15 @@
-before_script:
-  - apt-get -q update
-  - env DEBIAN_FRONTEND=noninteractive apt-get -q -y install jekyll make ruby-jekyll-redirect-from ruby-jekyll-polyglot ruby-jekyll-sitemap po4a python3-yaml git
+.nix:
+  image: nixos/nix:2.24.9
+  before_script:
+    - echo "experimental-features = nix-command flakes" >>/etc/nix/nix.conf
 
 test:
-  image: debian:stable-backports
+  extends: .nix
   script:
-    - make
-    - make lint
+    - nix build -o _site
   artifacts:
     paths:
       - _site/*
   environment:
     name: HTML
-    url: 'https://$CI_PROJECT_NAMESPACE.pages.debian.net/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/_site/index.html'
+    url: "https://$CI_PROJECT_NAMESPACE.pages.debian.net/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/_site/index.html"



View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/commit/56428c99effe1156883b45d4825a0c8262442de4

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/commit/56428c99effe1156883b45d4825a0c8262442de4
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20241013/c8e9f14a/attachment.htm>


More information about the rb-commits mailing list