ustream ci: Use infra scripts to build testing images

As we do not use molecule features, using a Dockerfile and the
ansible-freeipa deployment roles is enough to create the container
testing images.

This patch removes the usage of molecule in favor of the custom
ansible-freeipa image building script, which allow us to have a similar
process for creating images both on the ustream CI, or on a developer's
environment.

Also, CentOS 7 is removed from the build script, as it in not possible
to run CentOS 7 containers with current versions of systemd.
This commit is contained in:
Rafael Guterres Jeffman
2024-07-19 22:56:21 -03:00
committed by Thomas Woerner
parent fb6fed58cb
commit 928ed30b8b
2 changed files with 43 additions and 33 deletions

View File

@@ -11,18 +11,19 @@ schedules:
trigger: none
pool:
vmImage: 'ubuntu-20.04'
vmImage: 'ubuntu-22.04'
stages:
- stage: CentOS_7
dependsOn: []
jobs:
- template: templates/build_container.yml
parameters:
job_name_suffix: Centos7
container_name: centos-7
build_scenario_name: centos-7-build
# Currently, it's not possible to use CentOS container
#
# - stage: CentOS_7
# dependsOn: []
# jobs:
# - template: templates/build_container.yml
# parameters:
# job_name_suffix: Centos7
# distro: centos-7
- stage: CentOS_8_Stream
dependsOn: []
@@ -30,8 +31,9 @@ stages:
- template: templates/build_container.yml
parameters:
job_name_suffix: C8S
container_name: c8s
build_scenario_name: c8s-build
distro: c8s
# ansible-core 2.17+ cannot be used to deploy on CentOS 8 Stream.
ansible_core_version: "<2.17"
- stage: CentOS_9_Stream
dependsOn: []
@@ -39,8 +41,7 @@ stages:
- template: templates/build_container.yml
parameters:
job_name_suffix: C9S
container_name: c9s
build_scenario_name: c9s-build
distro: c9s
- stage: Fedora_Latest
dependsOn: []
@@ -48,8 +49,7 @@ stages:
- template: templates/build_container.yml
parameters:
job_name_suffix: FedoraLatest
container_name: fedora-latest
build_scenario_name: fedora-latest-build
distro: fedora-latest
- stage: Fedora_Rawhide
dependsOn: []
@@ -57,5 +57,4 @@ stages:
- template: templates/build_container.yml
parameters:
job_name_suffix: FedoraRawhide
container_name: fedora-rawhide
build_scenario_name: fedora-rawhide-build
distro: fedora-rawhide