[Git][reproducible-builds/reproducible-website][push-ttprxvnmqsrx] ci: experimentation with nix
Pol Dellaiera (@drupol)
gitlab at salsa.debian.org
Sun Oct 13 20:20:16 UTC 2024
Pol Dellaiera pushed to branch push-ttprxvnmqsrx at Reproducible Builds / reproducible-website
Commits:
d3bd2f21 by Pol Dellaiera at 2024-10-13T22:20:07+02:00
ci: experimentation with nix
- - - - -
1 changed file:
- .gitlab-ci.yml
Changes:
=====================================
.gitlab-ci.yml
=====================================
@@ -1,15 +1,18 @@
-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
+ - cp -vr --dereference $(readlink -f result) output
+ - mv output _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/d3bd2f21ff8e17b0f01d9686fdb5c84564299495
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/-/commit/d3bd2f21ff8e17b0f01d9686fdb5c84564299495
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/e53c32e6/attachment.htm>
More information about the rb-commits
mailing list