[release-monitoring] Fix the remaining deployment issues
Found out the issue was in missing includes in pyproject.toml. This is fixed in https://github.com/fedora-infra/anitya/pull/1486 and the build should work again. Let's hope I'm right. Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
parent
9d1d1252f7
commit
ce61b702b4
1 changed files with 9 additions and 8 deletions
|
@ -55,9 +55,8 @@ items:
|
|||
pushd anitya && \
|
||||
{% if env == 'staging' %}
|
||||
git checkout staging && \
|
||||
python3 -m venv --system-site-packages .venv && \
|
||||
source .venv/bin/activate && \
|
||||
pip-3 install . && \
|
||||
poetry build && \
|
||||
pip-3 install dist/*.whl && \
|
||||
{% else %}
|
||||
git checkout production && \
|
||||
python3 setup.py install && \
|
||||
|
@ -70,14 +69,16 @@ items:
|
|||
cp -r _build/html/* ../anitya/static/docs/ && \
|
||||
popd && \
|
||||
{% if env == 'staging' %}
|
||||
deactivate && \
|
||||
poetry build && \
|
||||
pip-3 install dist/*.whl && \
|
||||
# Copy the symlink, it's not part of wheel
|
||||
cp static/bootstrap /usr/local/lib/python3.10/site-packages/anitya/static/
|
||||
{% else %}
|
||||
python3 setup.py install && \
|
||||
{% endif %}
|
||||
pip-3 install . && \
|
||||
popd
|
||||
# popd && \
|
||||
# rm -rf anitya
|
||||
{% endif %}
|
||||
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