GitLab runner on Windows with bash shell on windows contianer on Docker
At times, you may run browser testing across different platform/environments as a part of your pipeline. To minimize the time for your testing, you may need to use a consistent shell scripting language across different platforms. This is one approach to fix this, which allows one to use bash shell on Windows with shell executor - https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/3503. Alternatively, you can use pwsh across the board. If you intend to use docker-windows executor you will need a gitlab helper container image with bash support. Build one for yourself - https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/3779 . To build the application image, I would use windowscore or windowsserver(for GUI application) base image . To manage/install applications I would use choco FROM mcr.microsoft.com/powershell:lts-windowsserver-ltsc2022 ARGS CHROME_VERSION= 108.0.5359.99 RUN choco install -y google-chrome-stable --version $Env: CHROME_VERSION Once done