gitlab-ci: set a common job parent for container stage
authorEric Engestrom <eric.engestrom@intel.com>
Mon, 14 Oct 2019 22:04:14 +0000 (23:04 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 15 Oct 2019 16:42:39 +0000 (17:42 +0100)
While at it, rename to singular "container" for consistency.

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
.gitlab-ci.yml
.gitlab-ci/lava-gitlab-ci.yml

index 3fa11e10aa75b7fb3afa6416a991be67b73ffd54..7c9b82c3898db4f8bab7d64c446f76702a720786 100644 (file)
@@ -32,7 +32,7 @@ include:
   - local: '/.gitlab-ci/lava-gitlab-ci.yml'
 
 stages:
-  - containers
+  - container
   - build
   - test
 
@@ -59,13 +59,19 @@ stages:
 
 # Build the normal CI native and cross-build docker images.
 
+.container:
+  stage: container
+  extends:
+    - .ci-run-policy
+  variables:
+    # no need to pull the whole repo to build the container image
+    GIT_STRATEGY: none
+
 debian-10:
   extends:
     - .debian@container-ifnot-exists
-    - .ci-run-policy
-  stage: containers
+    - .container
   variables:
-    GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
     DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
 
 .use-debian-10:
@@ -91,13 +97,12 @@ debian-9:
 test-container:arm64:
   extends:
     - .debian@container-ifnot-exists@arm64v8
-    - .ci-run-policy
-  stage: containers
+    - .container
   variables:
     DEBIAN_TAG: "$DEBIAN_ARM64_TAG"
-    GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
     DEBIAN_EXEC: 'bash .gitlab-ci/debian-test-install.sh'
 
+
 # BUILD
 
 .build:
index a35a72474b7dd458ea3b4fbe162a985acd8f1623..bcf4591cd460b40f3768710ea6fe9679da6d2a8a 100644 (file)
@@ -22,10 +22,8 @@ include:
 .lava-container:
   extends:
     - .debian@container-ifnot-exists
-    - .ci-run-policy
-  stage: containers
+    - .container
   variables:
-    GIT_STRATEGY: none # no need to pull the whole tree for rebuilding the image
     DEBIAN_TAG: '${DEBIAN_ARCH}-${LAVA_IMAGE_TAG}'
     DEBIAN_EXEC: 'DEBIAN_ARCH=${DEBIAN_ARCH}
                   GCC_ARCH=${GCC_ARCH}