From: Michał Kępień Date: Thu, 5 Nov 2020 10:45:19 +0000 (+0100) Subject: Use "image" key in Windows GitLab CI job templates X-Git-Tag: v9.17.7~23^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=004ca913f2db4594d7c6902ee5a4a24f01782383;p=thirdparty%2Fbind9.git Use "image" key in Windows GitLab CI job templates Our GitLab Runner Custom executor scripts now use the "image" key for determining the Windows Docker image to use for a given CI job. Update .gitlab-ci.yml to reflect that change. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 28be95c9d67..19d82a4d3d4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -92,6 +92,11 @@ stages: - bsd-stress - stress +.windows-amd64: &windows_amd64 + tags: + - windows + - amd64 + ### Docker Image Templates # Alpine Linux @@ -154,6 +159,12 @@ stages: image: "$CI_REGISTRY_IMAGE:ubuntu-focal-amd64" <<: *linux_amd64 +# Windows + +.windows-server-2016-amd64: &windows_server_2016_amd64_image + image: "$CI_REGISTRY_IMAGE:windows-server-2016-amd64" + <<: *windows_amd64 + # Base image # This is a meta image that is used as a base for non-specific jobs @@ -257,9 +268,6 @@ stages: .windows_build: &windows_build_job stage: build - tags: - - windows - - amd64 script: - 'Push-Location "C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Auxiliary/Build"' - '& cmd.exe /C "vcvarsall.bat x64 & set" | Foreach-Object { if ($_ -match "(.*?)=(.*)") { Set-Item -force -path "Env:\$($matches[1])" -value "$($matches[2])" } }' @@ -348,9 +356,6 @@ stages: .windows_system_test: &windows_system_test_job stage: system - tags: - - windows - - amd64 script: - 'Push-Location bin/tests/system' - '$ifIndex = Get-NetIPInterface -AddressFamily IPv4 -InterfaceMetric 75 | Select-Object -ExpandProperty ifIndex' @@ -1216,12 +1221,14 @@ unit:clang:openbsd:amd64: # Jobs for Visual Studio 2017 builds on Windows (amd64) msvc:windows:amd64: + <<: *windows_server_2016_amd64_image <<: *windows_build_job <<: *default_triggering_rules variables: VSCONF: Release system:msvc:windows:amd64: + <<: *windows_server_2016_amd64_image <<: *windows_system_test_job variables: VSCONF: Release @@ -1230,6 +1237,7 @@ system:msvc:windows:amd64: artifacts: true msvc-debug:windows:amd64: + <<: *windows_server_2016_amd64_image <<: *windows_build_job variables: VSCONF: Debug @@ -1239,6 +1247,7 @@ msvc-debug:windows:amd64: - web system:msvc-debug:windows:amd64: + <<: *windows_server_2016_amd64_image <<: *windows_system_test_job variables: VSCONF: Debug