forked from facebook/CacheLib
-
Notifications
You must be signed in to change notification settings - Fork 13
/
.packit.yaml
25 lines (21 loc) · 982 Bytes
/
.packit.yaml
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
# See the documentation for more information:
# https://packit.dev/docs/configuration
specfile_path: cachelib.spec
upstream_package_name: CacheLib
downstream_package_name: cachelib
actions:
fix-spec-file:
- bash -c "sed -i cachelib.spec -e \"s/%global commit.*/%global commit $(git rev-parse HEAD)/\""
- bash -c "sed -i cachelib.spec -e \"s/%global date.*/%global date $(git show -s --date=format:'%Y%m%d' --format=%cd)/\""
create-archive:
- bash -c "COMMIT=$(git rev-parse HEAD); curl -ORL https://github.com/facebook/CacheLib/archive/${COMMIT}/cachelib-${COMMIT}.tar.gz; echo cachelib-${COMMIT}.tar.gz"
post-upstream-clone: "bash -c \"rm -rf cachelib-dist-git; git clone -b packit https://pagure.io/meta/cachelib.git cachelib-dist-git && mv cachelib-dist-git/cachelib*.{spec,patch} .\""
jobs:
- job: copr_build
trigger: pull_request
metadata:
targets:
- fedora-rawhide-aarch64
- fedora-rawhide-x86_64
- fedora-35-aarch64
- fedora-35-x86_64