-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add packit config file for creating copr build on pull requests and r…
…eleases
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
upstream_project_url: https://github.com/rhinstaller/anaconda-webui | ||
# enable notification of failed downstream jobs as issues | ||
issue_repository: https://github.com/rhinstaller/anaconda-webui | ||
specfile_path: anaconda-webui.spec | ||
upstream_package_name: anaconda-webui | ||
downstream_package_name: anaconda-webui | ||
# use the nicely formatted release description from our upstream release, instead of git shortlog | ||
copy_upstream_release_description: true | ||
|
||
srpm_build_deps: | ||
- npm | ||
- make | ||
|
||
actions: | ||
post-upstream-clone: make anaconda-webui.spec | ||
create-archive: make dist | ||
|
||
jobs: | ||
- job: copr_build | ||
trigger: pull_request | ||
targets: | ||
- fedora-development | ||
|
||
- job: copr_build | ||
trigger: release | ||
owner: "@rhinstaller" | ||
project: "anaconda-webui" | ||
preserve_project: True | ||
actions: | ||
post-upstream-clone: make anaconda-webui.spec | ||
# HACK: tarball for releases (copr_build, koji, etc.), copying spec's Source0; this | ||
# really should be the default, see https://github.com/packit/packit-service/issues/1505 | ||
create-archive: | ||
- sh -exc "curl -L -O https://github.com/rhinstaller/anaconda-webui/releases/download/${PACKIT_PROJECT_VERSION}/${PACKIT_PROJECT_NAME_VERSION}.tar.xz" | ||
- sh -exc "ls ${PACKIT_PROJECT_NAME_VERSION}.tar.xz" |