Skip to content

Instantly share code, notes, and snippets.

@ryankurte
Last active February 12, 2024 13:22
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save ryankurte/d6573be1b35a7d5731d957826b1862df to your computer and use it in GitHub Desktop.
Save ryankurte/d6573be1b35a7d5731d957826b1862df to your computer and use it in GitHub Desktop.
Set gitlab runner to use git bash
[[runners]]
name = "tt708-windows"
url = "https://gitlab.com/"
token = "[REDACTED]"
executor = "shell"
shell = "bash"
builds_dir="/c/gitlab-runner/builds/"
cache_dir="/c/gitlab-runner/cache/"
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
et-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\gitlab-runner\ -Name ImagePath -Value "C:\Program Files\Git\bin\bash.exe -c `"/c/gitlab-r
unner/gitlab-runner.exe run --working-directory /c/gitlab-runner --config /c/gitlab-runner/config.toml --service gitlab-runner`""
@gsal
Copy link

gsal commented Oct 27, 2022

Is there no need to login? meaning bash.exe --login ... ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment