feat!: add daemon to build & especially cache

This commit is contained in:
Technofab 2023-06-09 16:36:29 +02:00
parent bd1cfe94a4
commit 92f3560899
No known key found for this signature in database
GPG key ID: A0AA746B951C8830
12 changed files with 93 additions and 17 deletions

View file

@ -0,0 +1,21 @@
[[runners]]
name = "Nix CI Runner"
url = "https://gitlab.com"
token = ""
executor = "docker"
[runners.custom_build_dir]
[runners.docker]
tls_verify = false
image = "technofab/nix-gitlab-ci"
privileged = true
# we cant specify a json file here, so we need privileged for now
#security_opt = [ "seccomp=/usr/share/containers/seccomp.json" ]
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = [
# prefixed with the docker-compose name
"nix-gitlab-ci_nix-shared-store:/mnt/nix/store:ro",
"nix-gitlab-ci_nix-daemon-socket:/mnt/nix/daemon-socket:ro"
]
shm_size = 0