-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy path.packit.yaml
More file actions
92 lines (79 loc) · 2.04 KB
/
.packit.yaml
File metadata and controls
92 lines (79 loc) · 2.04 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
# See the documentation for more information:
# https://packit.dev/docs/configuration/
downstream_package_name: podman-tui
upstream_tag_template: v{version}
srpm_build_deps:
- git-archive-all
packages:
podman-tui-fedora:
pkg_tool: fedpkg
specfile_path: rpm/podman-tui.spec
podman-tui-centos:
pkg_tool: centpkg
specfile_path: rpm/podman-tui.spec
merge_pr_in_ci: false
files_to_sync:
- src:
- ".packit.yaml"
- "rpm/podman-tui.spec"
- "rpm/vendor-*.tar.gz"
dest: .
actions:
fix-spec-file:
- "bash rpm/packit-copr-rpm.sh"
post-modifications:
- |
bash -xc '
export CURRENT_DIR=$(pwd)
export BASE_DIR=${PACKIT_UPSTREAM_REPO}/
if [ -n "${PACKIT_DOWNSTREAM_REPO}" ] ; then
VERSION=$(grep -E "[[:space:]]+appVersion\s*=" ${BASE_DIR}/cmd/version.go | cut -d\" -f2 | sed 's/-//')
tar -C ${BASE_DIR} -czf "vendor-${VERSION}.tar.gz" vendor/
cp vendor-${VERSION}.tar.gz ${PACKIT_DOWNSTREAM_REPO}
fi
'
jobs:
- job: copr_build
trigger: pull_request
enable_net: true
packages: [podman-tui-fedora]
targets:
- fedora-all-x86_64
- fedora-all-aarch64
- job: copr_build
trigger: pull_request
enable_net: true
packages: [podman-tui-fedora]
targets:
- epel-9-x86_64
- epel-9-aarch64
- epel-10-x86_64
- epel-10-aarch64
- job: copr_build
trigger: pull_request
enable_net: true
packages: [podman-tui-centos]
targets:
- centos-stream-9-x86_64
- centos-stream-9-aarch64
- centos-stream-10-x86_64
- centos-stream-10-aarch64
- job: propose_downstream
trigger: release
update_release: false
packages:
- podman-tui-fedora
dist_git_branches: &build_targets
- fedora-all
- epel-9
- epel-10
- job: koji_build
trigger: commit
packages:
- podman-tui-fedora
dist_git_branches: *build_targets
- job: bodhi_update
trigger: koji_build
packages:
- podman-tui-fedora
dist_git_branches: *build_targets