Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use tito for builds and share the actions #2956

Merged
merged 2 commits into from
Oct 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
# https://packit.dev/docs/configuration/
upstream_project_url: https://github.com/fedora-copr/copr.git

actions: &common_actions
create-archive:
- bash -c "tito build --tgz --test -o ."
- bash -c "ls -1t ./*.tar.gz | head -n 1"
get-current-version:
- bash -c "grep -Po 'Version. +\K.*' *.spec"

packages:

python-copr:
Expand All @@ -16,6 +23,7 @@ packages:
upstream_tag_template: python-copr-{version}
upstream_tag_include: "^python-copr-.*"
actions:
<<: *common_actions
post-upstream-clone:
- sh -c "wait-for-copr --owner $COPR_OWNER --project $COPR_PROJECT python-copr-common `git rev-parse --short HEAD`"

Expand Down Expand Up @@ -84,6 +92,7 @@ packages:
- copr-rpmbuild.spec
upstream_tag_template: copr-rpmbuild-{version}
actions:
<<: *common_actions
post-upstream-clone:
- sh -c "wait-for-copr --owner $COPR_OWNER --project $COPR_PROJECT python-copr `git rev-parse --short HEAD`"
upstream_tag_include: "^copr-rpmbuild-.*"
Expand All @@ -110,6 +119,7 @@ packages:
upstream_tag_template: copr-cli-{version}
upstream_tag_include: "^copr-cli-.*"
actions:
<<: *common_actions
post-upstream-clone:
- sh -c "wait-for-copr --owner $COPR_OWNER --project $COPR_PROJECT python-copr `git rev-parse --short HEAD`"

Expand All @@ -124,6 +134,7 @@ packages:
upstream_tag_template: copr-frontend-{version}
upstream_tag_include: "^copr-frontend-.*"
actions:
<<: *common_actions
post-upstream-clone:
- sh -c "wait-for-copr --owner $COPR_OWNER --project $COPR_PROJECT python-copr `git rev-parse --short HEAD`"

Expand All @@ -132,6 +143,9 @@ srpm_build_deps:
# The wait-for-copr tool is used to resolve waiting for dependent builds.
# (Comes from the packit/packit-stable Copr project that is already enabled in the environment.)
- wait-for-copr
- tito
- git


merge_pr_in_ci: False

Expand Down