2020-10-24 23:57:45 +05:30
# Run PowerShell: https://docs.microsoft.com/en-us/powershell/scripting/windows-powershell/starting-windows-powershell?view=powershell-7#with-administrative-privileges-run-as-administrator
2022-04-04 11:22:00 +05:30
# Create a folder somewhere on your system, for example: C:\GitLab-Runner
2020-10-24 23:57:45 +05:30
New-Item -Path 'C:\GitLab-Runner' -ItemType Directory
2022-04-04 11:22:00 +05:30
# Change to the folder
2020-10-24 23:57:45 +05:30
cd 'C:\GitLab-Runner'
2022-04-04 11:22:00 +05:30
# Download binary
2020-10-24 23:57:45 +05:30
Invoke-WebRequest -Uri " ${GITLAB_CI_RUNNER_DOWNLOAD_LOCATION} " -OutFile " gitlab-runner.exe "
2022-04-04 11:22:00 +05:30
# Register the runner (steps below), then run
2020-10-24 23:57:45 +05:30
. \ gitlab-runner . exe install
. \ gitlab-runner . exe start