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

Packit: update targets #330

Merged
merged 1 commit into from
Sep 18, 2024
Merged
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
57 changes: 34 additions & 23 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ packages:
specfile_path: rpm/container-selinux.spec
container-selinux-rhel:
specfile_path: rpm/container-selinux.spec
container-selinux-eln:
specfile_path: rpm/container-selinux.spec

srpm_build_deps:
- make
Expand All @@ -43,16 +45,26 @@ jobs:
message: "Ephemeral COPR build failed. @containers/packit-build please check."
enable_net: true
# container-selinux is noarch so we only need to test on one arch
targets: &fedora_copr_targets
- fedora-development
- fedora-latest
- fedora-ltest-stable
- fedora-40

- job: copr_build
trigger: pull_request
packages: [container-selinux-eln]
notifications: *copr_build_failure_notification
enable_net: true
targets:
- fedora-all
- fedora-eln

- job: copr_build
trigger: pull_request
packages: [container-selinux-centos]
notifications: *copr_build_failure_notification
enable_net: true
targets: &centos_targets
targets: &centos_copr_targets
- centos-stream-9
- centos-stream-10

Expand Down Expand Up @@ -85,8 +97,7 @@ jobs:
notifications: &test_failure_notification
failure_comment:
message: "Tests failed. @containers/packit-build please check."
targets:
- fedora-all
targets: *fedora_copr_targets
tf_extra_params:
environments:
- artifacts:
Expand All @@ -98,34 +109,35 @@ jobs:
trigger: pull_request
packages: [container-selinux-centos]
notifications: *test_failure_notification
targets: *centos_targets
targets: *centos_copr_targets
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/centos-stream-$releasever/rhcontainerbot-podman-next-centos-stream-$releasever.repo

# FIXME: Re-enable once podman packit copr builds are re-enabled for el9
# Tests for RHEL
- job: tests
trigger: pull_request
packages: [container-selinux-rhel]
use_internal_tf: true
notifications: *test_failure_notification
targets:
epel-9-x86_64:
distros: [RHEL-9.4.0-Nightly,RHEL-9-Nightly]
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/epel-$releasever/rhcontainerbot-podman-next-epel-$releasever.repo
- type: repository-file
id: https://src.fedoraproject.org/rpms/epel-release/raw/epel9/f/epel.repo
#- job: tests
# trigger: pull_request
# packages: [container-selinux-rhel]
# use_internal_tf: true
# notifications: *test_failure_notification
# targets:
# epel-9-x86_64:
# distros: [RHEL-9.4.0-Nightly,RHEL-9-Nightly]
# tf_extra_params:
# environments:
# - artifacts:
# - type: repository-file
# id: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/epel-$releasever/rhcontainerbot-podman-next-epel-$releasever.repo
# - type: repository-file
# id: https://src.fedoraproject.org/rpms/epel-release/raw/epel9/f/epel.repo

- job: propose_downstream
trigger: release
packages: [container-selinux-fedora]
dist_git_branches:
dist_git_branches: &fedora_targets
- fedora-all

- job: propose_downstream
Expand All @@ -137,8 +149,7 @@ jobs:
- job: koji_build
trigger: commit
packages: [container-selinux-fedora]
dist_git_branches:
- fedora-all
dist_git_branches: *fedora_targets

- job: bodhi_update
trigger: commit
Expand Down