|
1 | 1 | # See the documentation for more information: |
2 | 2 | # https://packit.dev/docs/configuration/ |
3 | 3 |
|
4 | | -specfile_path: prometheus-podman-exporter.spec |
| 4 | +downstream_package_name: prometheus-podman-exporter |
| 5 | +upstream_tag_template: v{version} |
| 6 | + |
| 7 | +srpm_build_deps: |
| 8 | + - git-archive-all |
| 9 | + |
| 10 | +packages: |
| 11 | + exporter-fedora: |
| 12 | + pkg_tool: fedpkg |
| 13 | + specfile_path: rpm/prometheus-podman-exporter.spec |
| 14 | + |
| 15 | + exporter-centos: |
| 16 | + pkg_tool: centpkg |
| 17 | + specfile_path: rpm/prometheus-podman-exporter.spec |
| 18 | + |
| 19 | +merge_pr_in_ci: false |
| 20 | + |
| 21 | +files_to_sync: |
| 22 | + - src: |
| 23 | + - ".packit.yaml" |
| 24 | + - "rpm/prometheus-podman-exporter.spec" |
| 25 | + - "rpm/vendor-*.tar.gz" |
| 26 | + dest: . |
| 27 | + |
| 28 | +actions: |
| 29 | + fix-spec-file: |
| 30 | + - "bash rpm/packit-copr-rpm.sh" |
| 31 | + post-modifications: |
| 32 | + - | |
| 33 | + bash -xc ' |
| 34 | + export CURRENT_DIR=$(pwd) |
| 35 | + export BASE_DIR=${PACKIT_UPSTREAM_REPO}/ |
| 36 | + if [ -n "${PACKIT_DOWNSTREAM_REPO}" ] ; then |
| 37 | + VERSION=$(grep -E "^VERSION=" ${BASE_DIR}/VERSION | cut -d= -f2) |
| 38 | + tar -C ${BASE_DIR} -czf "vendor-${VERSION}.tar.gz" vendor/ |
| 39 | + cp vendor-${VERSION}.tar.gz ${PACKIT_DOWNSTREAM_REPO} |
| 40 | + fi |
| 41 | + ' |
5 | 42 |
|
6 | 43 | jobs: |
7 | 44 | - job: copr_build |
8 | 45 | trigger: pull_request |
9 | 46 | enable_net: true |
10 | | - srpm_build_deps: |
11 | | - - make |
12 | | - - openssl-devel |
13 | | - - rpkg |
| 47 | + packages: [exporter-fedora] |
14 | 48 | targets: |
15 | 49 | - fedora-all-x86_64 |
16 | 50 | - fedora-all-aarch64 |
17 | | -# go1.24.7 rpm not available yet for ELEP9 |
18 | | -# - epel-9-x86_64 |
19 | | -# - epel-9-aarch64 |
| 51 | + |
| 52 | + - job: copr_build |
| 53 | + trigger: pull_request |
| 54 | + enable_net: true |
| 55 | + packages: [exporter-fedora] |
| 56 | + targets: |
| 57 | + - epel-9-x86_64 |
| 58 | + - epel-9-aarch64 |
20 | 59 | - epel-10-x86_64 |
21 | 60 | - epel-10-aarch64 |
| 61 | + |
| 62 | + - job: copr_build |
| 63 | + trigger: pull_request |
| 64 | + enable_net: true |
| 65 | + packages: [exporter-centos] |
| 66 | + targets: |
22 | 67 | - centos-stream-9-x86_64 |
23 | 68 | - centos-stream-9-aarch64 |
24 | 69 | - centos-stream-10-x86_64 |
25 | 70 | - centos-stream-10-aarch64 |
26 | 71 |
|
| 72 | + - job: propose_downstream |
| 73 | + trigger: release |
| 74 | + update_release: false |
| 75 | + packages: |
| 76 | + - exporter-fedora |
| 77 | + dist_git_branches: &build_targets |
| 78 | + - fedora-all |
| 79 | + - epel-9 |
| 80 | + - epel-10 |
27 | 81 |
|
28 | | - actions: |
29 | | - post-upstream-clone: |
30 | | - - "rpkg spec --outdir ./" |
| 82 | + - job: koji_build |
| 83 | + trigger: commit |
| 84 | + packages: |
| 85 | + - exporter-fedora |
| 86 | + dist_git_branches: *build_targets |
31 | 87 |
|
32 | | - fix-spec-file: |
33 | | - "bash .packit.sh" |
| 88 | + - job: bodhi_update |
| 89 | + trigger: koji_build |
| 90 | + packages: |
| 91 | + - exporter-fedora |
| 92 | + dist_git_branches: *build_targets |
0 commit comments