]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
ci docker: make into a x86+arm matrix
authorVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 7 Apr 2022 18:44:05 +0000 (20:44 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Sat, 4 Jun 2022 13:43:50 +0000 (13:43 +0000)
No other job can do it, as we don't have docker images ready for that,
and the usual manual workflow won't be well usable with arm64.
We'll need to convert their generation to (manual?) CI schedules.

.gitlab-ci.yml

index b8f790de9372977a215e480f567792d8ea3a7aba..081ccf43a2f11a131b135d004e3a93f69ac8f929 100644 (file)
@@ -27,6 +27,17 @@ stages:
   - deploy
   - pkgtest
 
+
+ # https://docs.gitlab.com/ce/ci/jobs/job_control.html#select-different-runner-tags-for-each-parallel-matrix-job
+.multi_platform: &multi_platform
+  parallel:
+    matrix:
+      - PLATFORM: [ amd64, arm64 ]
+  tags: # some will override this part
+    - ${PLATFORM}
+    - docker
+    - linux
+
 .common: &common
   except:
     refs:
@@ -117,9 +128,10 @@ docker:
   <<: *nodep
   stage: build
   image: docker:latest
+  <<: *multi_platform
   tags:
+    - ${PLATFORM}
     - dind
-    - amd64
   variables:
     DOCKER_IMAGE_NAME: knot-resolver-test:${CI_COMMIT_SHA}
   script: