aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGwenael Lambrouin <gwenael.lambrouin@orange.com>2022-02-21 15:15:47 +0100
committerGwenael Lambrouin <gwenael.lambrouin@orange.com>2022-02-21 15:15:47 +0100
commitb8186aa57c5026c556f5ac41f49126b14d720cf4 (patch)
treee13564cdfe6448b25d48042f120b336c4e98ac5e
parent792bfff16a555b15513b5e25da9cd8a7ff84ac28 (diff)
.gitlab-ci.yml: fix vm image jobs
1) use CentOS 7 hosts to build VM images: CentOS 8 is not supported as a build host according to diskimage-builder documentation: https://docs.openstack.org/diskimage-builder/latest/user_guide/supported_distros.html (page checked on 2022-02-08) 2) add missing packages for diskimage-builder: qemu-img kpartx sudo e2fsprogs 3) use "python3 -m venv" instead of virtualenv (else the pipeline fails because of https://github.com/pypa/virtualenv/issues/1029) Change-Id: I14daf76dded1f230e12c47218ddcb1fe9029bcd8 Signed-off-by: Gwenael Lambrouin <gwenael.lambrouin@orange.com>
-rw-r--r--.gitlab-ci.yml12
1 files changed, 6 insertions, 6 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 41d7fa2..1ab02fe 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -36,10 +36,10 @@ tox-py36:
verify-image:
stage: build
- image: centos:8
+ image: centos:7
before_script:
- - dnf -y install python3-virtualenv
- - virtualenv venv
+ - yum -y install python3 qemu-img kpartx sudo e2fsprogs
+ - python3 -m venv venv
script:
- source venv/bin/activate
- !reference [.gsutil-install, script]
@@ -53,10 +53,10 @@ verify-image:
build-image:
stage: deploy
- image: centos:8
+ image: centos:7
before_script:
- - dnf -y install python3-virtualenv
- - virtualenv venv
+ - yum -y install python3 qemu-img kpartx sudo e2fsprogs
+ - python3 -m venv venv
script:
- source venv/bin/activate
- !reference [.gsutil-install, script]