Skip to content

Commit

Permalink
chore(packit): add pre-sync to fix propose-downstream action
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Murdaca <[email protected]>
  • Loading branch information
runcom committed Nov 26, 2024
1 parent b526926 commit a3a0bae
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 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"
dest: .

upstream_package_name: fido-device-onboard
downstream_package_name: fido-device-onboard
Expand All @@ -18,6 +22,9 @@ srpm_build_deps:
- openssl-devel

actions:
pre-sync:
- bash -c "./make-vendored-tarfile.sh ${PACKIT_PROJECT_VERSION}"
- bash -c "git restore Cargo.lock && rm -rf fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}-vendor-patched.tar.xz"
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 Down

0 comments on commit a3a0bae

Please sign in to comment.