switch infrastructure.repo to infra-tags.repo for OSBS buildroot
Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
parent
3c20df3b47
commit
49655eec73
3 changed files with 7 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
FROM fedora:24
|
||||
ADD ./infrastructure.repo /etc/yum.repos.d/infrastructure.repo
|
||||
ADD ./infra-tags.repo /etc/yum.repos.d/infra-tags.repo
|
||||
RUN dnf -y install --refresh dnf-plugins-core && dnf -y install docker git python-docker-py python-setuptools e2fsprogs koji python-backports-lzma osbs-client gssproxy fedpkg python-docker-squash atomic-reactor python-atomic-reactor*
|
||||
RUN sed -i 's|.*default_ccache_name.*| default_ccache_name = DIR:/tmp/ccache_%{uid}|g' /etc/krb5.conf
|
||||
ADD ./krb5.osbs_{{osbs_url}}.keytab /etc/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
FROM fedora:24
|
||||
ADD ./infrastructure.repo /etc/yum.repos.d/infrastructure.repo
|
||||
ADD ./infra-tags.repo /etc/yum.repos.d/infra-tags.repo
|
||||
RUN curl -o /etc/yum.repos.d/maxamillion-atomic-reactor-copr.repo https://copr.fedorainfracloud.org/coprs/maxamillion/atomic-reactor/repo/fedora-24/maxamillion-atomic-reactor-fedora-24.repo
|
||||
RUN dnf -y install --refresh dnf-plugins-core && dnf -y install docker git python-docker-py python-setuptools e2fsprogs koji python-backports-lzma osbs-client gssproxy fedpkg python-docker-squash atomic-reactor python-atomic-reactor*
|
||||
RUN sed -i 's|.*default_ccache_name.*| default_ccache_name = DIR:/tmp/ccache_%{uid}|g' /etc/krb5.conf
|
||||
|
|
|
@ -625,24 +625,24 @@
|
|||
|
||||
- name: stat infra repofile
|
||||
stat:
|
||||
path: "/etc/yum.repos.d/infrastructure.repo"
|
||||
path: "/etc/yum.repos.d/infra-tags.repo"
|
||||
register: infra_repo_stat
|
||||
|
||||
- name: stat /etc/osbs/buildroot/ infra repofile
|
||||
stat:
|
||||
path: "/etc/osbs/buildroot/infrastructure.repo"
|
||||
path: "/etc/osbs/buildroot/infra-tags.repo"
|
||||
register: etcosbs_infra_repo_stat
|
||||
|
||||
- name: remove old /etc/osbs/buildroot/ infra repofile
|
||||
file:
|
||||
path: "/etc/osbs/buildroot/infrastructure.repo"
|
||||
path: "/etc/osbs/buildroot/infra-tags.repo"
|
||||
state: absent
|
||||
when: etcosbs_infra_repo_stat.stat.exists and infra_repo_stat.stat.checksum != etcosbs_infra_repo_stat.stat.checksum
|
||||
|
||||
- name: Copy repofile for buildroot container (because Docker)
|
||||
copy:
|
||||
src: "/etc/yum.repos.d/infrastructure.repo"
|
||||
dest: "/etc/osbs/buildroot/infrastructure.repo"
|
||||
src: "/etc/yum.repos.d/infra-tags.repo"
|
||||
dest: "/etc/osbs/buildroot/infra-tags.repo"
|
||||
remote_src: true
|
||||
notify:
|
||||
- buildroot container
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue