Skip to content

Commit

Permalink
ci: Enable Packit CI for C10S
Browse files Browse the repository at this point in the history
Signed-off-by: Karel Srot <ksrot@redhat.com>
  • Loading branch information
kkaarreell committed May 30, 2024
1 parent 2d24ecd commit 3136faf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ jobs:
trigger: pull_request
targets:
- centos-stream-9-x86_64
- centos-stream-10-x86_64
skip_build: true
tf_extra_params:
environments:
Expand Down
16 changes: 9 additions & 7 deletions packit-ci.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@ summary: run ansible system roles test with IMA policy setup
environment:
DOCKERFILE_AGENT: Dockerfile.agent
DOCKERFILE_SYSTEMD: Dockerfile.systemd
NETAVARK_FW: nftables

context:
swtpm: yes
agent: rust

prepare:
- how: shell
script:
- rpm -Uv https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm || true
when: distro == rhel-9 or distro == centos-stream-9
- how: shell
script:
- ln -s $(pwd) /var/tmp/keylime_server-role-sources
Expand All @@ -24,7 +21,7 @@ discover:
- name: Configure_simple_IMA_policy
how: fmf
url: https://github.com/RedHat-SP-Security/keylime-tests
ref: rhel-9-main
ref: "@.tmt/dynamic_ref.fmf"
test:
- /setup/configure_swtpm_device
- /setup/configure_kernel_ima_module/ima_policy_simple
Expand All @@ -37,9 +34,14 @@ discover:
- "/functional/.*"

adjust:
- when: distro != rhel-9 and distro == centos-stream-9
- when: distro != rhel-9 and distro == centos-stream-9 and distro != rhel-10 and distro == centos-stream-10
enabled: false
because: keylime_server role is RHEL-9 only
because: keylime_server role is RHEL-9 and RHEL-10 only
- when: distro == rhel-9 or distro == centos-stream-9
prepare+:
- how: shell
script:
- rpm -Uv https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm || true

execute:
how: tmt

0 comments on commit 3136faf

Please sign in to comment.