forked from bpfman/bpfman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.packit.yml
61 lines (61 loc) · 2.26 KB
/
.packit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
downstream_package_name: bpfman
upstream_project_url: https://github.com/bpfman/bpfman
specfile_path: bpfman.spec
prerelease_suffix_pattern: ([.\-_~^]?)(dev|alpha|beta|rc|pre(view)?)([.\-_]?\d+)?
srpm_build_deps:
- cargo
- rust
- git
- jq
- openssl-devel
actions:
fix-spec-file:
- bash -c "OVERWRITE_RELEASE=true bash .packit.sh"
get-current-version:
- bash -c 'cargo metadata --format-version 1 | jq -r ".packages[] | select(.name == \"bpfman\") | .version"'
post-upstream-clone:
bash -c 'if [[ ! -d /var/tmp/cargo-vendor-filterer ]]; then git clone https://github.com/coreos/cargo-vendor-filterer.git /var/tmp/cargo-vendor-filterer; fi &&
cd /var/tmp/cargo-vendor-filterer &&
cargo build &&
cd - &&
cp /var/tmp/cargo-vendor-filterer/target/debug/cargo-vendor-filterer . &&
./cargo-vendor-filterer --format tar.gz --prefix vendor bpfman-bpfman-vendor.tar.gz'
jobs:
## Ensure https://copr.fedorainfracloud.org/coprs/g/ebpf-sig/bpfman-next/ tracks HEAD.
- job: copr_build
trigger: commit
branch: main
specfile_path: bpfman.spec
owner: "@ebpf-sig"
project: bpfman-next
targets:
- fedora-development
- fedora-stable
- job: tests
trigger: commit
targets:
- fedora-development
- fedora-stable
specfile_path: bpfman.spec
## Ensure https://copr.fedorainfracloud.org/coprs/g/ebpf-sig/bpfman/ tracks the
## latest release.
- job: copr_build
trigger: release
actions:
fix-spec-file:
- bash -c "OVERWRITE_RELEASE=false bash .packit.sh"
get-current-version:
- bash -c 'cargo metadata --format-version 1 | jq -r ".packages[] | select(.name == \"bpfman\") | .version"'
post-upstream-clone:
bash -c 'if [[ ! -d /var/tmp/cargo-vendor-filterer ]]; then git clone https://github.com/coreos/cargo-vendor-filterer.git /var/tmp/cargo-vendor-filterer; fi &&
cd /var/tmp/cargo-vendor-filterer &&
cargo build &&
cd - &&
cp /var/tmp/cargo-vendor-filterer/target/debug/cargo-vendor-filterer . &&
./cargo-vendor-filterer --format tar.gz --prefix vendor bpfman-bpfman-vendor.tar.gz'
specfile_path: bpfman.spec
owner: "@ebpf-sig"
project: bpfman
dist_git_branches:
- fedora-development
- fedora-stable