copr: builders: better work with mock config overrides
With new copr-rpmbuild 0.38 it is much easier.
This commit is contained in:
parent
42daacba6c
commit
15889c9181
1 changed files with 4 additions and 9 deletions
|
@ -69,21 +69,16 @@
|
||||||
- name: install qemu-user-static
|
- name: install qemu-user-static
|
||||||
dnf: state=present pkg=qemu-user-static
|
dnf: state=present pkg=qemu-user-static
|
||||||
|
|
||||||
- name: run /bin/copr-update-builder from copr-builder package
|
|
||||||
shell: /usr/bin/copr-update-builder
|
|
||||||
|
|
||||||
# temporarily, till https://pagure.io/copr/copr/pull-request/1273 lands
|
|
||||||
# production
|
|
||||||
- name: restore config files from mock-core-configs
|
|
||||||
shell: find /etc/mock -name '*.rpmnew' | while read file; do mv -f "$file" "${file%%.rpmnew}"; done
|
|
||||||
|
|
||||||
- name: put updated mock configs into /etc/mock
|
- name: put updated mock configs into /etc/mock
|
||||||
copy: src=files/mock/ dest=/etc/mock
|
copy: src=files/mock/ dest=/etc/copr-rpmbuild/mock-config-overrides
|
||||||
# conditional, per https://pagure.io/copr/copr/issue/1189 - as we don't want
|
# conditional, per https://pagure.io/copr/copr/issue/1189 - as we don't want
|
||||||
# to bake broken mock configuration into the image.
|
# to bake broken mock configuration into the image.
|
||||||
when:
|
when:
|
||||||
- prepare_base_image is not defined
|
- prepare_base_image is not defined
|
||||||
|
|
||||||
|
- name: run /bin/copr-update-builder from copr-builder package
|
||||||
|
shell: /usr/bin/copr-update-builder
|
||||||
|
|
||||||
- name: put copr-rpmbuild configuration file in the right place
|
- name: put copr-rpmbuild configuration file in the right place
|
||||||
copy: src=files/main.ini dest=/etc/copr-rpmbuild/main.ini
|
copy: src=files/main.ini dest=/etc/copr-rpmbuild/main.ini
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue