]> 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 14:07:00 +0000 (15:07 +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.

(cherry picked from commit 004ca913f2db4594d7c6902ee5a4a24f01782383)

.gitlab-ci.yml

index 49881ba02be15a35f48f956d24b3b206550244e8..7a1e629f4bbffd5d336224c93d5de023254bec37 100644 (file)
@@ -81,6 +81,11 @@ stages:
     - bsd-stress
     - stress
 
+.windows-amd64: &windows_amd64
+  tags:
+    - windows
+    - amd64
+
 ### Docker Image Templates
 
 # Alpine Linux
@@ -147,6 +152,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
 
@@ -236,9 +247,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])" } }'
@@ -316,9 +324,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'
@@ -1223,12 +1228,14 @@ unit:nolibtool:sid: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
@@ -1237,6 +1244,7 @@ system:msvc:windows:amd64:
       artifacts: true
 
 msvc-debug:windows:amd64:
+  <<: *windows_server_2016_amd64_image
   <<: *windows_build_job
   variables:
     VSCONF: Debug
@@ -1246,6 +1254,7 @@ msvc-debug:windows:amd64:
     - web
 
 system:msvc-debug:windows:amd64:
+  <<: *windows_server_2016_amd64_image
   <<: *windows_system_test_job
   variables:
     VSCONF: Debug