Make staging bodhi FE download the latest bodhi package

This commit is contained in:
Adam Saleh 2021-09-30 16:58:48 +02:00
parent 65f5a72086
commit e37f9f63d3

View file

@ -6,7 +6,11 @@ LABEL \
RUN curl -o /etc/yum.repos.d/infra-tags.repo https://infrastructure.fedoraproject.org/infra/ansible/files/common/fedora-infra-tags.repo RUN curl -o /etc/yum.repos.d/infra-tags.repo https://infrastructure.fedoraproject.org/infra/ansible/files/common/fedora-infra-tags.repo
# While dnf has a --nodocs, it doesen't have a --docs... # While dnf has a --nodocs, it doesen't have a --docs...
RUN sed -i '/nodocs/d' /etc/dnf/dnf.conf RUN sed -i '/nodocs/d' /etc/dnf/dnf.conf
{% if env == "staging" %}
RUN dnf install -y bodhi-server bodhi-docs python3-pyramid_sawing python3-gunicorn
{% else %}
RUN dnf install -y bodhi-server-{{bodhi_version}} bodhi-docs-{{bodhi_version}} python3-pyramid_sawing python3-gunicorn RUN dnf install -y bodhi-server-{{bodhi_version}} bodhi-docs-{{bodhi_version}} python3-pyramid_sawing python3-gunicorn
{% endif %}
# Set up krb5 # Set up krb5
RUN rm -f /etc/krb5.conf && \ RUN rm -f /etc/krb5.conf && \