Skip to content

Commit

Permalink
Add packit config file for creating copr build on pull requests and r…
Browse files Browse the repository at this point in the history
…eleases
  • Loading branch information
KKoukiou committed Nov 7, 2023
1 parent 68e955d commit 1d64c07
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions packit.yaml
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"

0 comments on commit 1d64c07

Please sign in to comment.