copr-be: copr-ping: setup both prod/stg instances
This commit is contained in:
parent
6a582f9ef9
commit
5e9ee1e814
1 changed files with 10 additions and 3 deletions
|
@ -8,8 +8,8 @@ project=@copr/copr-ping
|
|||
pkgname=copr-ping
|
||||
|
||||
build_deps=()
|
||||
copr_cmd=(
|
||||
copr edit-package-custom "$project" \
|
||||
copr_args=(
|
||||
edit-package-custom "$project" \
|
||||
--webhook-rebuild on \
|
||||
--script "$script" \
|
||||
--script-chroot "fedora-latest-x86_64" \
|
||||
|
@ -17,4 +17,11 @@ copr_cmd=(
|
|||
--max-builds 10
|
||||
)
|
||||
|
||||
"${copr_cmd[@]}" --name "$pkgname"
|
||||
for instance in copr dev-copr; do
|
||||
config=~/.config/"$instance"
|
||||
test -f "$config" || {
|
||||
echo "can not setup $instance"
|
||||
continue
|
||||
}
|
||||
copr --config "$config" "${copr_args[@]}" --name "$pkgname"
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue