mirror of
https://gitlab.com/TECHNOFAB/nix-gitlab-ci.git
synced 2025-12-12 02:00:13 +01:00
feat: allow specifying the target devShell via NIX_CI_SHELL
This commit is contained in:
parent
92f3560899
commit
6b870cd4dc
1 changed files with 4 additions and 2 deletions
6
ci-image/entrypoint.sh
Normal file → Executable file
6
ci-image/entrypoint.sh
Normal file → Executable file
|
|
@ -3,5 +3,7 @@ set -e
|
||||||
|
|
||||||
cd "$CI_PROJECT_DIR"
|
cd "$CI_PROJECT_DIR"
|
||||||
|
|
||||||
echo "Activating flake's CI shell..."
|
nix_shell="${NIX_CI_SHELL:-ci}"
|
||||||
nix develop .#ci --impure --command "bash"
|
|
||||||
|
echo "Activating flake's '$nix_shell' shell..."
|
||||||
|
nix develop .#"$nix_shell" --impure --command "bash"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue