gitlab CI: some more centos deduplication
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 6 Feb 2020 00:23:45 +0000 (10:23 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 6 Feb 2020 00:25:05 +0000 (10:25 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
.gitlab-ci.yml

index ef8a4c8923f1b90c282d6d00d939d0730169bdde..9f42caca6ebe9a2492c023dd675ce472c6724659 100644 (file)
@@ -182,7 +182,7 @@ debian:sid@container-prep:
     TAG: $DEBIAN_TAG
   <<: *pull_upstream_or_rebuild
 
-centos:7@container-prep:
+.centos@container-prep:
   extends: .centos@container-build
   stage: container_prep
   variables:
@@ -193,16 +193,15 @@ centos:7@container-prep:
     TAG: $CENTOS_TAG
   <<: *pull_upstream_or_rebuild
 
+centos:7@container-prep:
+  extends: .centos@container-prep
+  variables:
+    CENTOS_VERSION: 7
+
 centos:8@container-prep:
-  extends: .centos@container-build
-  stage: container_prep
+  extends: .centos@container-prep
   variables:
-    GIT_STRATEGY: none
     CENTOS_VERSION: 8
-    DISTRIB_FLAVOR: centos
-    DISTRIB_VERSION: $CENTOS_VERSION
-    TAG: $CENTOS_TAG
-  <<: *pull_upstream_or_rebuild
 
 arch:rolling@container-prep:
   extends: .arch@container-build
@@ -348,19 +347,21 @@ debian:sid@container-clean:
     DEBIAN_VERSION: sid
     CURRENT_CONTAINER_IMAGE: $DEBIAN_CONTAINER_IMAGE
 
-centos:7@container-clean:
+.centos@container-clean:
   extends: .container-clean
   variables:
     GIT_STRATEGY: none
-    CENTOS_VERSION: 7
     CURRENT_CONTAINER_IMAGE: $CENTOS_CONTAINER_IMAGE
 
+centos:7@container-clean:
+  extends: .centos@container-clean
+  variables:
+    CENTOS_VERSION: 7
+
 centos:8@container-clean:
-  extends: .container-clean
+  extends: .centos@container-clean
   variables:
-    GIT_STRATEGY: none
     CENTOS_VERSION: 8
-    CURRENT_CONTAINER_IMAGE: $CENTOS_CONTAINER_IMAGE
 
 arch:rolling@container-clean:
   extends: .container-clean