-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.packit.yaml
83 lines (76 loc) · 2.14 KB
/
.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
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
---
specfile_path: newa.spec
files_to_sync:
- newa.spec
- .packit.yaml
sync_changelog: true
upstream_package_name: newa
downstream_package_name: newa
upstream_project_url: https://github.com/RedHatQE/newa
issue_repository: https://github.com/RedHatQE/newa
srpm_build_deps:
- hatch
- python3-hatch-vcs
jobs:
# Build pull requests
- job: copr_build
trigger: pull_request
targets:
- fedora-all-x86_64
- fedora-all-aarch64
- epel-9-x86_64
- epel-9-aarch64
enable_net: false
osh_diff_scan_after_copr_build: false
actions:
create-archive:
- hatch build -t sdist
- bash -c "ls dist/newa-*.tar.gz"
get-current-version:
# Use `dev888` instead of the last version digit to make
# builds older than the final release and newer than
# copr builds from main. Remove the remaining suffix
# generated by `hatch version` as well so that build
# with the latest timestamp always wins.
- bash -c "hatch version | sed -E 's/\\.[0-9]+\\.dev.*/.dev888/'"
# Build commits to main
- job: copr_build
trigger: commit
branch: main
targets:
- fedora-all-x86_64
- fedora-all-aarch64
- epel-9-x86_64
- epel-9-aarch64
enable_net: false
osh_diff_scan_after_copr_build: false
list_on_homepage: true
preserve_project: true
release_suffix: "{PACKIT_PROJECT_BRANCH}"
actions:
create-archive:
- hatch build -t sdist
- bash -c "ls dist/newa-*.tar.gz"
get-current-version:
# Get rid of the the final version digit to make copr
# builds older than the final release
- bash -c "hatch version | sed -E 's/\\.[0-9]+\\.dev/.dev/'"
# Release to copr
- job: copr_build
trigger: release
targets:
- fedora-all-x86_64
- fedora-all-aarch64
- epel-9-x86_64
- epel-9-aarch64
enable_net: false
list_on_homepage: true
preserve_project: true
owner: "ksrot"
project: newa
actions:
create-archive:
- hatch build -t sdist
- bash -c "ls dist/newa-*.tar.gz"
get-current-version:
- hatch version