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>
- local: '/.gitlab-ci/lava-gitlab-ci.yml'
stages:
- - containers
+ - container
- build
- test
# 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:
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:
.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}