[release-monitoring] Generate docs in virtual environment
I'm not sure what is happening, but the docs and bootstrap symlink are not installed in the system. Let's try to first install Anitya to virtual environment and build the docs and after that do a direct install to container. Also don't remove the cloned folder, so we can look what is happening there. Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
parent
a79b2eacdd
commit
595568964f
1 changed files with 9 additions and 5 deletions
|
@ -55,8 +55,9 @@ items:
|
|||
pushd anitya && \
|
||||
{% if env == 'staging' %}
|
||||
git checkout staging && \
|
||||
poetry build && \
|
||||
pip-3 install dist/*.whl && \
|
||||
python3 -m venv --system-site-packages .venv && \
|
||||
source .venv/bin/activate && \
|
||||
pip-3 install . && \
|
||||
{% else %}
|
||||
git checkout production && \
|
||||
python3 setup.py install && \
|
||||
|
@ -68,12 +69,15 @@ items:
|
|||
mkdir -p ../anitya/static/docs/ && \
|
||||
cp -r _build/html/* ../anitya/static/docs/ && \
|
||||
popd && \
|
||||
{% if env != 'staging' %}
|
||||
{% if env == 'staging' %}
|
||||
deactivate && \
|
||||
{% else %}
|
||||
python3 setup.py install && \
|
||||
{% endif %}
|
||||
pip-3 install . && \
|
||||
popd && \
|
||||
rm -rf anitya
|
||||
popd
|
||||
# popd && \
|
||||
# rm -rf anitya
|
||||
{% if env == 'staging' %}
|
||||
# Let's use staging auth server in staging
|
||||
RUN sed -i 's/id.fedoraproject.org/id.stg.fedoraproject.org/g' /usr/local/lib/python3.10/site-packages/social_core/backends/fedora.py
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue