ansible/roles/openshift-apps/bodhi/templates/dockerfile-critpathcron
Mattia Verga 8ae7d1610c bodhi: adjust config for staging instance
Signed-off-by: Mattia Verga <mattia.verga@tiscali.it>
2024-04-24 16:38:05 +00:00

16 lines
700 B
Text

{% if env == "staging" %}
FROM fedora:40
{% else %}
FROM fedora:38
{% endif %}
LABEL \
name="bodhi-critpathcron" \
vendor="Fedora Infrastructure" \
license="MIT"
{% if env == "staging" %}
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-stg.repo https://infrastructure.fedoraproject.org/infra/ansible/files/common/fedora-infra-tags-stg.repo
{% else %}
RUN curl -o /etc/yum.repos.d/infra-tags.repo https://infrastructure.fedoraproject.org/infra/ansible/files/common/fedora-infra-tags.repo
{% endif %}
RUN dnf install -y python3-dnf python3-yaml git fedora-repos