anitya/release-monitoring: fix syntax error

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
Michal Konečný 2019-01-09 13:40:30 +01:00
parent 862f6f1f4a
commit 5287d4a49c

View file

@ -42,27 +42,27 @@ items:
dnf autoremove -y && \ dnf autoremove -y && \
dnf clean all -y dnf clean all -y
RUN pip-3 install sqlalchemy_schemadisplay RUN pip-3 install sqlalchemy_schemadisplay
RUN git clone https://github.com/release-monitoring/anitya.git && \ RUN git clone https://github.com/release-monitoring/anitya.git
pushd anitya && \ RUN pushd anitya
{% if env == 'staging' %} {% if env == 'staging' %}
git checkout staging && \ RUN git checkout staging
{% else %} {% else %}
git checkout production && \ RUN git checkout production
{% endif %} {% endif %}
python3 setup.py install && \ RUN python3 setup.py install
pushd docs && \ RUN pushd docs
mkdir -p images && \ RUN mkdir -p images
python3 generate_db_schema && \ RUN python3 generate_db_schema
sphinx-build-3 -b html . _build/html && \ RUN sphinx-build-3 -b html . _build/html
mkdir -p ../anitya/static/docs/ && \ RUN mkdir -p ../anitya/static/docs/
cp -r _build/html/* ../anitya/static/docs/ && \ RUN cp -r _build/html/* ../anitya/static/docs/
popd && \ RUN popd
python3 setup.py install && \ RUN python3 setup.py install
rm -f /usr/local/bin/anitya_cron.py && \ RUN rm -f /usr/local/bin/anitya_cron.py
cp files/anitya_cron.py /usr/local/bin/ && \ RUN cp files/anitya_cron.py /usr/local/bin/
pip-3 install . && \ RUN pip-3 install .
popd && \ RUN popd
rm -rf anitya RUN rm -rf anitya
RUN rm /etc/fedmsg.d/*py RUN rm /etc/fedmsg.d/*py
RUN mkdir /httpdir RUN mkdir /httpdir
RUN chmod 777 /httpdir RUN chmod 777 /httpdir