gitlab-ci: Move shared tags to a default section.
authorRalph Giles <giles@thaumas.net>
Wed, 10 Jun 2020 21:03:28 +0000 (14:03 -0700)
committerRalph Giles <giles@thaumas.net>
Wed, 10 Jun 2020 21:03:28 +0000 (14:03 -0700)
Move shared properties into a `default` stanza per current
style recommendations.

.gitlab-ci.yml

index 3341d50..411b47c 100644 (file)
@@ -1,5 +1,8 @@
-# Image from https://hub.docker.com/_/gcc/ based on Debian
-image: gcc
+default:
+  tags:
+    - docker
+  # Image from https://hub.docker.com/_/gcc/ based on Debian
+  image: gcc
 
 autoconf:
   stage: build
@@ -15,8 +18,6 @@ autoconf:
     paths:
       - "lib/*.o"
       - "lib/.libs/*.o"
-  tags:
-    - docker
 
 cmake:
   stage: build
@@ -28,5 +29,3 @@ cmake:
     - mkdir build
     - cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release
     - cmake --build build
-  tags:
-    - docker