<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Irregular Expressions</title>
<subtitle>Posts tagged “GitLab”</subtitle>
<id>https://chaseleinart.com/tags/gitlab/feed.xml</id>
<link href="https://chaseleinart.com/tags/gitlab/feed.xml" rel="self" />
<link href="https://chaseleinart.com/" />
<updated>2026-01-16T00:00:00.000Z</updated>
<entry>
<title>Using Guix Docker Images for Gitlab CI/CD</title>
<id>https://chaseleinart.com/posts/using-guix-docker-images-for-gitlab-ci-cd/</id>
<link href="https://chaseleinart.com/posts/using-guix-docker-images-for-gitlab-ci-cd/" rel="alternate" />
<published>2026-01-16T00:00:00.000Z</published>
<updated>2026-01-16T00:00:00.000Z</updated>
<author><name>Chase Leinart</name><email>chaseleinart@proton.me</email></author>
<category term="Guix" />
<category term="Linux" />
<category term="GitLab" />
<category term="Guile" />
<content type="html">&lt;p&gt;Over the years I&apos;ve made several changes to how this website is hosted and deployed. In its original incarnation, it was a Jekyll site hosted with GitHub Pages. Eventually I felt the need to move the repository and its deployment to GitLab for one or more reasons. GitLab offers a &lt;a href=&quot;https://gitlab.com/pages/jekyll&quot;&gt;Jekyll project&lt;/a&gt; for getting started with GitLab Pages. I ended up forking the &lt;a href=&quot;https://gitlab.com/jekyll-themes/default-bundler&quot;&gt;Build Jekyll with Bundler&lt;/a&gt; repo as a starting point, migrating my styling and markdown posts afterwards.&lt;/p&gt;
&lt;p&gt;As many others have, I felt the need to fiddle around with the choice of framework for my blog and learned about &lt;a href=&quot;https://dthompson.us/projects/haunt.html&quot;&gt;Haunt&lt;/a&gt;, a static site generator written in &lt;a href=&quot;https://www.gnu.org/software/guile/&quot;&gt;Guile&lt;/a&gt;, one of the GNU Scheme implementations. Haunt doesn&apos;t require markdown files as a source, offering several types of readers and allowing customization. By making a few small tweaks to my posts, mostly around my use of inline HTML which one of Haunt&apos;s dependencies didn&apos;t seem to like, I was able to migrate my blog to Haunt without too much fuss. I previously implemented a tags system in Jekyll to allow generating dedicated tag pages on build in addition to the aggregate tags page, but I found the approach cumbersome. Creating this functionality for my blog &lt;a href=&quot;https://gitlab.com/Irregular_Expressions/irregular-expressions-blog/-/blob/master/tags-page.scm?ref_type=heads&quot;&gt;in Guile&lt;/a&gt; on the other hand was straighforward and cleaner.&lt;/p&gt;
&lt;p&gt;Generating your site is done with&lt;/p&gt;
&lt;pre class=&quot;astro-code astro-code-themes gruvbox-light-soft gruvbox-dark-soft&quot; style=&quot;background-color:#f2e5bc;--shiki-dark-bg:#32302f;color:#3c3836;--shiki-dark:#ebdbb2; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;haunt build&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;transforming your underlying files into a static site with styling. The Haunt website offers two pathways to get the package. Either build from source, or do&lt;/p&gt;
&lt;pre class=&quot;astro-code astro-code-themes gruvbox-light-soft gruvbox-dark-soft&quot; style=&quot;background-color:#f2e5bc;--shiki-dark-bg:#32302f;color:#3c3836;--shiki-dark:#ebdbb2; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;guix install haunt&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href=&quot;https://guix.gnu.org/&quot;&gt;Guix&lt;/a&gt; (pronounced like geeks) bills itself as &quot;a  package manager for GNU/Linux systems&quot;.. &quot;designed to give users more control over their general-purpose and specialized computing environments, and make these easier to reproduce over time and deploy to one or many devices.&quot; That package manager shares a lineage with &lt;a href=&quot;https://nixos.org/&quot;&gt;Nix&lt;/a&gt;, and like Nix, there is also a proper distro centered on Guix as a package manager are core OS utility. Guix is also notable for using the &lt;a href=&quot;https://shepherding.services/&quot;&gt;GNU Shepherd&lt;/a&gt; as its init system and service manager. Guix and Shepherd are both written in Guile, with the Guix System using Guile for total configuration of the OS.&lt;/p&gt;
&lt;p&gt;I thought it&apos;d be interesting to make use of Guix to build my site directly on my CI/CD pipeline. After some searching, I came across a &lt;a href=&quot;https://github.com/metacall/guix&quot;&gt;Docker image&lt;/a&gt; for using Guix in CI/CD. I have some initial challenges getting the build to work related to locale settings on the image, but landed on the gitlab-ci.yml file shown below that identifies needed dependencies from my project manifest file. With that in place, it runs haunt build, moves the generated site to the expected path, and GitLab Pages takes care of the rest.&lt;/p&gt;
&lt;pre class=&quot;astro-code astro-code-themes gruvbox-light-soft gruvbox-dark-soft&quot; style=&quot;background-color:#f2e5bc;--shiki-dark-bg:#32302f;color:#3c3836;--shiki-dark:#ebdbb2; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;# requiring the environment of GNU Guix for Haunt&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;image: metacall/guix&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;# the &apos;pages&apos; job will deploy and build your site to the &apos;public&apos; path&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;pages:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  stage: deploy&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  script:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    - guix package -m manifest.scm&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    - export GUIX_PROFILE=&quot;/root/.guix-profile&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    - source &quot;$GUIX_PROFILE/etc/profile&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    - export GUIX_LOCPATH=&quot;$GUIX_PROFILE/lib/locale&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    - export LANG=&quot;en_US.UTF-8&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    - export LC_ALL=&quot;en_US.UTF-8&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    - haunt build&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    - mv site public&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  artifacts:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    paths:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;      - public&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  only:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    - master # this job will affect only the &apos;master&apos; branch&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Without a little further digging, I&apos;m not fully sure what could be attributed to user error vs opportunities to customize the base Docker image, but I think it&apos;s an interesting way to customize and deploy my website.&lt;/p&gt;</content>
</entry>
</feed>
