]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
feat(github): adding packit support for fedora maintenance
authorJóhann B. Guðmundsson <johannbg@gmail.com>
Fri, 19 Feb 2021 14:51:47 +0000 (14:51 +0000)
committerDaniel Molkentin <daniel@molkentin.de>
Tue, 23 Feb 2021 15:04:23 +0000 (16:04 +0100)
Adding initial packit [1] support for fedora maintenance which
should automate the release process from upstream release to fedora.

1. https://packit.dev

.packit.yml [new file with mode: 0644]

diff --git a/.packit.yml b/.packit.yml
new file mode 100644 (file)
index 0000000..88ad76f
--- /dev/null
@@ -0,0 +1,58 @@
+# This file is part of dracut.
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+# The name of the upstream package
+upstream_package_name: dracut
+
+# The upstream tag versioning scheme 
+upstream_tag_template: "{version}"
+
+# The URL of the upstream project
+upstream_project_url: https://github.com/dracutdevs/dracut
+
+# Relative path to a spec file within the upstream repository
+specfile_path: dracut.spec
+
+# Name of the downstream package
+downstream_package_name: dracut
+
+# The URL of the downstream project
+dist_git_base_url: https://src.fedoraproject.org/
+
+# Sync file(s) from upstream repo to dist-git
+synced_files:
+  # The dracut spec file is maintained upstream so we sync it downstream.
+  - dracut.spec
+  # We sync the packit file downstream be able to optionally use the sync-from-downstream command
+  - .packit.yaml
+
+# We want new releases to be automatically built on rawhide and have few jobs
+# on copr.
+create_pr: false
+jobs:
+- job: propose_downstream
+  trigger: release
+  metadata:
+    dist_git_branches: master
+
+- job: tests
+  trigger: pull_request
+  metadata:
+    targets:
+      - fedora-rawhide
+
+- job: copr_build
+  trigger: pull_request
+  metadata:
+    targets:
+      - fedora-rawhide
+
+- job: copr_build
+  trigger: commit
+  metadata:
+    targets:
+      - fedora-rawhide
+    branch: master
+    owner: "@dracut"
+    project: Dracut
+    preserve_project: True