summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Giles <giles@thaumas.net>2020-05-04 10:17:53 -0700
committerRalph Giles <giles@thaumas.net>2020-05-04 10:17:53 -0700
commit1e8d7cce266df61afc9d35db0283bbacc0237aba (patch)
tree918bbb4d8c181b426e9d00d53ca3a07fea94a8dd
parenta4208e5fc8aad1a6a1fb0f4f0970af6ccef78f66 (diff)
downloadogg-git-1e8d7cce266df61afc9d35db0283bbacc0237aba.tar.gz
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.
-rw-r--r--.gitlab-ci.yml11
1 files 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