From: Vladimír Čunát Date: Thu, 7 Apr 2022 18:44:05 +0000 (+0200) Subject: ci docker: make into a x86+arm matrix X-Git-Tag: v5.5.1~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15d661dfd41ead8b4c47c4b591b902ca4ac936ef;p=thirdparty%2Fknot-resolver.git ci docker: make into a x86+arm matrix 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. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b8f790de9..081ccf43a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: