]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use "image" key in Windows GitLab CI job templates
authorMichał Kępień <michal@isc.org>
Thu, 5 Nov 2020 10:45:19 +0000 (11:45 +0100)
committerMichał Kępień <michal@isc.org>
Thu, 5 Nov 2020 10:45:19 +0000 (11:45 +0100)
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.

.gitlab-ci.yml

index 28be95c9d678c0ec45835f7f8756bc309d8c41c6..19d82a4d3d4a46650137bf48ca37bca2bc7e3b81 100644 (file)
@@ -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