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

chore(packit): add pre-sync to fix propose-downstream action #695

Merged
merged 2 commits into from
Nov 26, 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
32 changes: 26 additions & 6 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
specfile_path: fido-device-onboard.spec

files_to_sync:
- fido-device-onboard.spec
- .packit.yaml
- src:
- patches/0001-Revert-chore-use-git-fork-for-aws-nitro-enclaves-cos.patch
- .packit.yaml
- fido-device-onboard.spec
- "fido-device-onboard-rs-*-vendor-patched.tar.xz"
runcom marked this conversation as resolved.
Show resolved Hide resolved
dest: .

upstream_package_name: fido-device-onboard
downstream_package_name: fido-device-onboard
Expand All @@ -17,7 +21,19 @@ srpm_build_deps:
- cargo
- openssl-devel

packages:
fido-device-onboard-fedora:
downstream_package_name: fido-device-onboard
upstream_package_name: fido-device-onboard
fido-device-onboard-centos:
downstream_package_name: fido-device-onboard
upstream_package_name: fido-device-onboard
pkg_tool: centpkg

actions:
pre-sync:
- bash -c "./make-vendored-tarfile.sh ${PACKIT_PROJECT_VERSION}"
- bash -c "git restore Cargo.lock"
mmartinv marked this conversation as resolved.
Show resolved Hide resolved
create-archive:
- bash -c "cp ./patches/0001-Revert-chore-use-git-fork-for-aws-nitro-enclaves-cos.patch ."
- bash -c "git archive --prefix=fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}/ --format=tar HEAD > fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar"
Expand All @@ -34,9 +50,6 @@ jobs:
fedora-latest-stable: {}
fedora-latest: {}
fedora-rawhide: {}
# fedora-eln:
# additional_repos:
# - https://kojipkgs.fedoraproject.org/repos/eln-build/latest/$basearch/

- job: tests
trigger: pull_request
Expand All @@ -48,17 +61,24 @@ jobs:
fedora-latest-stable: {}
fedora-latest: {}
fedora-rawhide: {}
# fedora-eln: {}

- job: sync_from_downstream
trigger: commit

- job: propose_downstream
trigger: release
packages: [fido-device-onboard-fedora]
dist_git_branches:
- fedora-development
- fedora-latest-stable

- job: propose_downstream
trigger: release
packages: [fido-device-onboard-centos]
dist_git_branches:
- c10s
- c9s

- job: koji_build
trigger: commit
dist_git_branches:
Expand Down
Loading