Skip to content

Commit

Permalink
chore(packit): use makefile targets on actions
Browse files Browse the repository at this point in the history
Use Makefile targets for `pre-sync` and `generate-archive` packit actions
instead of doing the scripting in the yaml file and reorder files to sync

Signed-off-by: Miguel Martín <[email protected]>
  • Loading branch information
mmartinv committed Nov 27, 2024
1 parent b0ce4e6 commit 097a24d
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ specfile_path: fido-device-onboard.spec

files_to_sync:
- 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"
- ".packit.yaml"
- "fido-device-onboard.spec"
- "fido-device-onboard-rs-*-vendor-patched.tar.xz"
- "*.patch"
dest: .

upstream_package_name: fido-device-onboard
Expand All @@ -32,14 +32,10 @@ packages:

actions:
pre-sync:
- bash -c "./make-vendored-tarfile.sh ${PACKIT_PROJECT_VERSION}"
- bash -c "git restore Cargo.lock"
- make packit-pre-sync VERSION=${PACKIT_PROJECT_VERSION}
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"
- bash -c "./make-vendored-tarfile.sh ${PACKIT_PROJECT_VERSION}"
- bash -c "tar -xvf fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar"
- bash -c "ls -1 ./fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar"
- make packit-create-archive VERSION=${PACKIT_PROJECT_VERSION}
- echo fido-device-onboard-rs-${PACKIT_PROJECT_VERSION}.tar

jobs:
- &fdo_copr_build
Expand Down

0 comments on commit 097a24d

Please sign in to comment.