Simplify and update CI scripts
1 unresolved thread
1 unresolved thread
Merge request reports
Activity
I think a way of running the entire job in the context of a nix shell is to overwrite the docker image entrypoint. See this config option https://docs.gitlab.com/ee/ci/yaml/#imageentrypoint
I've done something like this in the past. I think you do something like:
build: image: name: nixos/nix entrypoint: ["nix-shell", "shell.nix"] script: - ...
Edited by Teo CamarasuActually a way that's a bit less hacky is to do something like:
script: - source <( nix print-dev-env -f shell.nix ) ...
Edited by Teo Camarasu
Please register or sign in to reply