From 31c1c7bca7f432a05ab35120a362d5b38f61d6c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kone=C4=8Dn=C3=BD?= Date: Mon, 5 Dec 2022 14:07:34 +0100 Subject: [PATCH] [release-monitoring] Add npm to build config - staging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Javascript and CSS dependencies for Anitya are now managed by npm. Let's reflect this in Anitya buildconfig. Signed-off-by: Michal Konečný --- .../release-monitoring/templates/buildconfig.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/openshift-apps/release-monitoring/templates/buildconfig.yml b/roles/openshift-apps/release-monitoring/templates/buildconfig.yml index f634dd9e78..57e470dd22 100644 --- a/roles/openshift-apps/release-monitoring/templates/buildconfig.yml +++ b/roles/openshift-apps/release-monitoring/templates/buildconfig.yml @@ -21,6 +21,9 @@ items: httpd \ graphviz \ fedora-messaging \ +{% if env == 'staging' %} + npm \ +{% endif %} poetry \ python3-alembic \ python3-beautifulsoup4 \ @@ -67,9 +70,16 @@ items: popd && \ # Uninstall the existing anitya installation first pip-3 uninstall -y anitya && \ +{% if env == 'staging' %} + # Install javascript dependencies + pushd static && \ + npm install && \ + popd && \ +{% else %} # Move bootstrap to correct folder rm -f anitya/static/bootstrap && \ mv anitya/static/bootstrap-3.3.4-fedora anitya/static/bootstrap && \ +{% endif %} poetry build && \ pip-3 install dist/*.whl && \ popd && \