Generate 20H2 image
What does this MR do?
Releases a 20H2 image
Why was this MR needed?
To support gitlab-org/gitlab-runner#27220 (closed)
What's the best way to test this MR?
-
Having the right tools installed (gitlab-runner-helper 20H2 image tag, the following commands work: git --version
,git lfs --version
,pwsh --version
) -
Can do a Git clone ( git clone https://gitlab.com/gitlab-org/gitlab-runner.git
) -
Runs on a Windows 20H2 machine
Run CI job using Windows 20H2 runner
-
Create windows 20H2 VM on GCP:
gcloud compute instances create ppombeiro-20h2 --image https://www.googleapis.com/compute/v1/projects/windows-cloud/global/images/windows-server-20h2-dc-core-v20210511
-
Use binary published in https://gitlab-runner-downloads.s3.amazonaws.com/pedropombeiro/27220/add-windows-2009-support/index.html.
Invoke-WebRequest -UseBasicParsing -OutFile gitlab-runner.exe https://gitlab-runner-downloads.s3.amazonaws.com/pedropombeiro/27220/add-windows-2009-support/binaries/gitlab-runner-windows-amd64.exe
-
Register runner
.\gitlab-runner register --executor "docker-windows" --url "https://gitlab.com/" --description "docker-20H2-runner" --tag-list "docker,20H2,gitlab.com" --locked="false" --access-level="not_protected" --registration-token="$TOKEN" --non-interactive --docker-image mcr.microsoft.com/windows/servercore:20H2
-
Start runner
.\gitlab-runner run
What are the relevant issue numbers?
Edited by Pedro Pombeiro