Skip to content

Test for yum install does not work if builder tag **contains** `docker`

The test verifies the following:

if "docker" in os.environ.get("CI_RUNNER_TAGS", "") and os.path.exists(
            yum_requirements_file
        ):
    ...

The CI_RUNNER_TAGS for the shell builder says docker-build, and therefore this test will also succeed then, whereas it shouldn't.

Failing pipeline: https://gitlab.idiap.ch/beat/beat.nightlies/-/jobs/250244

The solution would be to split the tags, and compare to "exactly" docker and not to just contain it.