My .gitlab-ci.yml has the following
run python:
image: python:3.10
script:
- |
cd "src"
pip install -r ../requirements.txt
ls -l
At first I thought it was the entrypoint specified by the image python:3.10
. However I ran the image locally, I was directly thrown into the Python REPL. It no way runs cd
.
So in the script part, which shell is used? sh, bash, or zsh? And is it possible to specify a shell to my liking?
CodePudding user response:
By default, it will use bash. If you want to change that, you can do so on your own runnner instances only. This is documented here: https://docs.gitlab.com/runner/shells/