Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an example for CentOS Stream X distro adjustment #192

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/context.rst
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,13 @@ comparison works for some special cases::
centos-8.4.0 < centos-9 ---> True
centos-8.4.0 ~< centos-9 ---> True (no minor comparison requested)
centos-8.4.0 ~< centos-9.2 ---> cannot (minor comparison requested)

If you want to aim for CentOS Stream you can specify the desired version like e.g. ``centos-stream-9``.
Real-life example of the use-case can be the following::

adjust:
- enabled: false
when: distro >= rhel-8 or distro == centos-stream-8
continue: false

This example is disabling the test for RHEL-8+ and for CentOS Stream 8.