From 888a2f7fa169d6f0fd13d0a36633814d10d42190 Mon Sep 17 00:00:00 2001 From: Jonas Zohren Date: Mon, 12 Jul 2021 19:58:35 +0000 Subject: [PATCH] Make CI run on famedly runners By default, jobs without tags only run on CI runners configured to do so [1]. Conduit can use famedly runners, which are more powerfull than gitlab's runners, but require a tag on the job to run it there. This commit tags each job with the "docker" tag. On the famedly/conduit repo this means faster CI. On other gitlab.com forks the normal ci. Selfhosted gitlab's might need to add a "docker" tag to their runner. [1]: https://docs.gitlab.com/ee/ci/runners/configure_runners.html#use-tags-to-limit-the-number-of-jobs-using-the-runner --- .gitlab-ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 005f0ee9..14c10ed1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,10 +9,12 @@ variables: CACHE_COMPRESSION_LEVEL: fastest + test:cargo: stage: "test" needs: [] image: "rust:latest" + tags: ["docker"] variables: CARGO_HOME: "cargohome" cache: @@ -43,6 +45,7 @@ test:cargo: - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' interruptible: true image: "rust:latest" + tags: ["docker"] cache: paths: - cargohome @@ -103,6 +106,7 @@ build:cargo:aarch64-unknown-linux-gnu: - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' interruptible: true image: "rust:latest" + tags: ["docker"] cache: paths: - cargohome @@ -149,6 +153,7 @@ publish:package: rules: - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' image: curlimages/curl:latest + tags: ["docker"] variables: GIT_STRATEGY: "none" # Don't need a clean copy of the code, we just operate on artifacts script: