forked from fdo-rs/fido-device-onboard-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.packit.yaml
More file actions
109 lines (89 loc) · 2.83 KB
/
Copy path.packit.yaml
File metadata and controls
109 lines (89 loc) · 2.83 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
---
# https://packit.dev/docs/configuration/
specfile_path: fido-device-onboard.spec
files_to_sync:
- src:
- ".packit.yaml"
- "fido-device-onboard.spec"
- "fido-device-onboard-rs-*-vendor-patched.tar.xz"
- "patches/0001-use-released-aws-nitro-enclaves-cose-version.patch"
dest: .
upstream_package_name: fido-device-onboard
downstream_package_name: fido-device-onboard
upstream_tag_template: v{version}
copy_upstream_release_description: true
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:
# for the propose-downstream CLI command
pre-sync:
- bash -c "make vendor-tarball VERSION=${PACKIT_PROJECT_VERSION}"
# for the srpm and copr builds
create-archive:
- bash -c "make packit-create-archive VERSION=${PACKIT_PROJECT_VERSION}"
jobs:
# Fedora jobs
- &fdo_copr_build_fedora
job: copr_build
packages: [fido-device-onboard-fedora]
trigger: pull_request
targets: ["fedora-latest-stable", "fedora-latest", "fedora-rawhide"]
- <<: *fdo_copr_build_fedora
trigger: commit
branch: main
owner: "@fedora-iot"
project: fedora-iot
- job: tests
trigger: pull_request
identifier: onboarding-fedora
fmf_path: test/fmf
tmt_plan: plans/onboarding
packages: [fido-device-onboard-fedora]
targets: ["fedora-latest-stable", "fedora-latest", "fedora-rawhide"]
- 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: koji_build
trigger: commit
allowed_pr_authors: [all_committers]
dist_git_branches: ["fedora-development", "fedora-latest-stable"]
- job: bodhi_update
trigger: commit
allowed_builders: [all_committers]
dist_git_branches: ["fedora-development", "fedora-latest-stable"]
# CentOS jobs
- &fdo_copr_build_centos
job: copr_build
packages: [fido-device-onboard-centos]
trigger: pull_request
targets: ["centos-stream-9", "centos-stream-10"]
- <<: *fdo_copr_build_centos
trigger: commit
branch: main
owner: "@fedora-iot"
project: fedora-iot
# Use dict format with explicit distros to work around
# https://github.com/packit/packit/issues/2700
- job: tests
trigger: pull_request
identifier: onboarding-centos
fmf_path: test/fmf
tmt_plan: plans/onboarding
packages: [fido-device-onboard-centos]
targets:
centos-stream-9-x86_64:
distros: [centos-stream-9]
centos-stream-10-x86_64:
distros: [centos-stream-10]