Skip to content

Commit

Permalink
Update Packit build configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Krzysztof Wilczyński <[email protected]>
  • Loading branch information
kwilczynski committed Oct 10, 2024
1 parent 62c6834 commit e27cb52
Showing 1 changed file with 95 additions and 95 deletions.
190 changes: 95 additions & 95 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ packages:
get-current-version: "bash -ec 'grep \"^const Version\" internal/version/version.go | cut -d\\\" -f2'"
post-upstream-clone:
# Use the Fedora Rawhide specfile
- "git clone https://src.fedoraproject.org/rpms/cri-o .packit_rpm --depth=1"
- git clone https://src.fedoraproject.org/rpms/cri-o .packit_rpm --depth=1
# Drop the "sources" file
- "rm -fv .packit_rpm/sources"
- rm -fv .packit_rpm/sources
# Update %global commit0 <sha> in specfile
- "sed -i \"s/^%global commit0.*/%global commit0 $(git rev-parse HEAD)/\" .packit_rpm/cri-o.spec"
- sed -i "s/^%global commit0.*/%global commit0 $(git rev-parse HEAD)/" .packit_rpm/cri-o.spec
# Remove downstream patches (if any)
- "sed -ri '/^Patch[0-9].*/d' .packit_rpm/cri-o.spec"
- sed -ri "/^Patch[0-9].*/d" .packit_rpm/cri-o.spec
fedora-40:
# v1.28.x
# Propose minor and patch releases downstream
Expand All @@ -42,7 +42,7 @@ packages:
# Drop the "sources" file so rebase-helper doesn't think we're a dist-git
- "rm -fv .packit_rpm/sources"
# Update %global commit0 <sha> in specfile
- "sed -i \"s/^%global commit0.*/%global commit0 $(git rev-parse HEAD)/\" .packit_rpm/cri-o.spec"
- 'sed -i "s/^%global commit0.*/%global commit0 $(git rev-parse HEAD)/" .packit_rpm/cri-o.spec'
fedora-39:
# v1.27.x
# Only propose patch releases downstream
Expand All @@ -59,104 +59,104 @@ packages:
# Drop the "sources" file so rebase-helper doesn't think we're a dist-git
- "rm -fv .packit_rpm/sources"
# Update %global commit0 <sha> in specfile
- "sed -i \"s/^%global commit0.*/%global commit0 $(git rev-parse HEAD)/\" .packit_rpm/cri-o.spec"
- 'sed -i "s/^%global commit0.*/%global commit0 $(git rev-parse HEAD)/" .packit_rpm/cri-o.spec'

jobs:
- job: copr_build
trigger: pull_request
branch: main
targets:
- centos-stream-9-aarch64
- centos-stream-9-x86_64
- fedora-development-aarch64
- fedora-development-x86_64
- fedora-latest-stable-aarch64
- fedora-latest-stable-x86_64
packages:
- fedora-rawhide
- job: copr_build
trigger: pull_request
branch: main
targets:
- centos-stream-9-aarch64
- centos-stream-9-x86_64
- fedora-development-aarch64
- fedora-development-x86_64
- fedora-latest-stable-aarch64
- fedora-latest-stable-x86_64
packages:
- fedora-rawhide

- job: copr_build
trigger: pull_request
branch: release-1.30
targets:
- centos-stream-9-aarch64
- centos-stream-9-x86_64
- fedora-development-aarch64
- fedora-development-x86_64
- fedora-latest-stable-aarch64
- fedora-latest-stable-x86_64
packages:
- fedora-rawhide
- job: copr_build
trigger: pull_request
branch: release-1.30
targets:
- centos-stream-9-aarch64
- centos-stream-9-x86_64
- fedora-development-aarch64
- fedora-development-x86_64
- fedora-latest-stable-aarch64
- fedora-latest-stable-x86_64
packages:
- fedora-rawhide

- job: copr_build
trigger: pull_request
branch: release-1.29
targets:
- centos-stream-9-aarch64
- centos-stream-9-x86_64
- fedora-rawhide-aarch64
- fedora-rawhide-x86_64
- fedora-40-aarch64
- fedora-40-x86_64
packages:
- fedora-40
- job: copr_build
trigger: pull_request
branch: release-1.29
targets:
- centos-stream-9-aarch64
- centos-stream-9-x86_64
- fedora-rawhide-aarch64
- fedora-rawhide-x86_64
- fedora-40-aarch64
- fedora-40-x86_64
packages:
- fedora-40

- job: copr_build
trigger: pull_request
branch: release-1.28
targets:
- centos-stream-9-aarch64
- centos-stream-9-x86_64
- fedora-rawhide-aarch64
- fedora-rawhide-x86_64
- fedora-40-aarch64
- fedora-40-x86_64
packages:
- fedora-40
- job: copr_build
trigger: pull_request
branch: release-1.28
targets:
- centos-stream-9-aarch64
- centos-stream-9-x86_64
- fedora-rawhide-aarch64
- fedora-rawhide-x86_64
- fedora-40-aarch64
- fedora-40-x86_64
packages:
- fedora-40

- job: copr_build
trigger: pull_request
branch: release-1.27
targets:
- centos-stream-9-aarch64
- centos-stream-9-x86_64
- fedora-rawhide-aarch64
- fedora-rawhide-x86_64
- fedora-39-aarch64
- fedora-39-x86_64
packages:
- fedora-39
- job: copr_build
trigger: pull_request
branch: release-1.27
targets:
- centos-stream-9-aarch64
- centos-stream-9-x86_64
- fedora-rawhide-aarch64
- fedora-rawhide-x86_64
- fedora-39-aarch64
- fedora-39-x86_64
packages:
- fedora-39

- job: propose_downstream
trigger: release
dist_git_branches:
- rawhide
packages:
- fedora-rawhide
- job: propose_downstream
trigger: release
dist_git_branches:
- rawhide
packages:
- fedora-rawhide

- job: propose_downstream
trigger: release
dist_git_branches:
- f40
packages:
- fedora-40
- job: propose_downstream
trigger: release
dist_git_branches:
- f40
packages:
- fedora-40

- job: propose_downstream
trigger: release
dist_git_branches:
- f39
packages:
- fedora-39
- job: propose_downstream
trigger: release
dist_git_branches:
- f39
packages:
- fedora-39

# downstream automation:
- job: koji_build
trigger: commit
allowed_pr_authors: ["packit-stg", "packit", "haircommander", "lorbus"]
dist_git_branches:
- fedora-all
# downstream automation:
- job: koji_build
trigger: commit
allowed_pr_authors: ["packit-stg", "packit", "haircommander", "lorbus"]
dist_git_branches:
- fedora-all

- job: bodhi_update
trigger: commit
allowed_pr_authors: ["packit-stg", "packit", "haircommander", "lorbus"]
dist_git_branches:
- fedora-branched
- job: bodhi_update
trigger: commit
allowed_pr_authors: ["packit-stg", "packit", "haircommander", "lorbus"]
dist_git_branches:
- fedora-branched

0 comments on commit e27cb52

Please sign in to comment.