monolith: add wopus gitlab runners

This commit is contained in:
Leonardo Eugênio 2025-05-28 00:07:44 -03:00
parent a4b900582a
commit 72ddcec77e
No known key found for this signature in database
GPG key ID: 2F8F21CE8721456B
3 changed files with 26 additions and 9 deletions

View file

@ -1,18 +1,19 @@
{ pkgs, lib, ... }:
{
mkNixRunner =
authenticationTokenConfigFile: with lib; rec {
authenticationTokenConfigFile: with lib; {
# File should contain at least these two variables:
# `CI_SERVER_URL`
# `REGISTRATION_TOKEN`
inherit authenticationTokenConfigFile; # 2
dockerImage = "alpine:3.18.2";
dockerAllowedImages = [ dockerImage ];
dockerVolumes = [
"/etc/nix/nix.conf:/etc/nix/nix.conf:ro"
"/nix/store:/nix/store:ro"
"/nix/var/nix/db:/nix/var/nix/db:ro"
"/nix/var/nix/daemon-socket:/nix/var/nix/daemon-socket:ro"
"/var/run/docker.sock:/var/run/docker.sock"
"/cache"
];
dockerDisableCache = true;
preBuildScript = pkgs.writeScript "setup-container" ''
@ -36,6 +37,7 @@
cacert
git
openssh
docker
]
)
}