Skip to content

Commit

Permalink
test: enable boot testing for ostree image types
Browse files Browse the repository at this point in the history
  • Loading branch information
achilleas-k committed Oct 20, 2023
1 parent b42b7df commit 2aa2fbd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/scripts/generate-ostree-build-config
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ build/{distro}/{arch}/{image_type}/{config_name}:
osbuild osbuild-luks2 osbuild-lvm2 osbuild-ostree osbuild-selinux
s3cmd podman xz
- {start_container}
- ./test/scripts/build-image.sh "{distro}" "{image_type}" "{config}"
- ./test/scripts/build-image "{distro}" "{image_type}" "{config}"
- ./test/scripts/boot-image "{distro}" "{arch}" "{image_type}" "{image_path}"
- ./test/scripts/upload-results "{distro}" "{image_type}" "{config}"
extends: .terraform
variables:
RUNNER: aws/fedora-38-{arch}
Expand Down Expand Up @@ -281,6 +283,8 @@ def generate_configs(build_requests, pull_configs, container_configs, pipeline_f

config_name = config["name"]

build_name = testlib.gen_build_name(distro, arch, image_type, config_name)
image_path = f"./build/{build_name}"
# generate script line to pull and start container
container = container_configs[config_name]

Expand All @@ -296,7 +300,8 @@ def generate_configs(build_requests, pull_configs, container_configs, pipeline_f
pipeline_file.write(JOB_TEMPLATE.format(distro=distro, arch=arch, image_type=image_type,
config_name=config_name, config=build_config_path,
start_container=container_cmd,
internal="true" if "rhel" in distro else "false"))
internal="true" if "rhel" in distro else "false",
image_path=image_path))
print("✅ DONE!")


Expand Down

0 comments on commit 2aa2fbd

Please sign in to comment.