From 1e8d7cce266df61afc9d35db0283bbacc0237aba Mon Sep 17 00:00:00 2001 From: Ralph Giles Date: Mon, 4 May 2020 10:17:53 -0700 Subject: Use the default key for gitab-ci config. Gitlab now supports a `default` section on the build description, which sets defaults which can be overridden by specific jobs. This encapsulates things a little better and avoid duplicating runner tags. --- .gitlab-ci.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9c89f22..6001704 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,8 @@ -# Image from https://hub.docker.com/_/gcc/ based on Debian -image: gcc:9 +default: + tags: + - docker + # Image from https://hub.docker.com/_/gcc/ based on Debian. + image: gcc:9 autoconf: stage: build @@ -11,8 +14,6 @@ autoconf: - ./configure - make - make distcheck - tags: - - docker cmake: stage: build @@ -23,5 +24,3 @@ cmake: - mkdir build - cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release - cmake --build build - tags: - - docker -- cgit v1.2.1