Skip to content

Commit

Permalink
Try waiting for Copr dependencies programatically
Browse files Browse the repository at this point in the history
Signed-off-by: Frantisek Lachman <[email protected]>
  • Loading branch information
lachmanfrantisek committed Jul 4, 2023
1 parent fb4e519 commit b14c646
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ packages:
- copr-cli.spec
upstream_tag_template: copr-cli-{version}
actions:
post-upstream-clone: sleep 300 # to have the newer python-copr-common
post-upstream-clone:
- sh -c "wait-for-copr --owner $COPR_OWNER --project $COPR_PROJECT python-copr `git rev-parse --short HEAD`"

copr-frontend:
downstream_package_name: copr-frontend
Expand All @@ -36,18 +37,25 @@ packages:
- copr-frontend.spec
upstream_tag_template: copr-frontend-{version}
actions:
post-upstream-clone: sleep 300 # to have the newer python-copr-common

post-upstream-clone:
- sh -c "wait-for-copr --owner $COPR_OWNER --project $COPR_PROJECT python-copr `git rev-parse --short HEAD`"


srpm_build_deps:
- wait-for-copr # this tool is used to resolve waiting for dependent builds
merge_pr_in_ci: False

jobs:
- job: copr_build
packages:
- python-copr
- copr-cli
- copr-frontend
trigger: pull_request
targets: fedora-37
owner: packit
project: copr
targets:
- fedora-all
additional_repos:
- "copr://packit/packit-wait-for-copr-main"

- job: copr_build
packages:
Expand Down

0 comments on commit b14c646

Please sign in to comment.