feat: allow specifying the target devShell via NIX_CI_SHELL

This commit is contained in:
Technofab 2023-06-14 01:36:10 +02:00
parent 92f3560899
commit 6b870cd4dc
No known key found for this signature in database
GPG key ID: A0AA746B951C8830

6
ci-image/entrypoint.sh Normal file → Executable file
View file

@ -3,5 +3,7 @@ set -e
cd "$CI_PROJECT_DIR"
echo "Activating flake's CI shell..."
nix develop .#ci --impure --command "bash"
nix_shell="${NIX_CI_SHELL:-ci}"
echo "Activating flake's '$nix_shell' shell..."
nix develop .#"$nix_shell" --impure --command "bash"