Commit a59724b5 authored by Carina Antunes's avatar Carina Antunes
Browse files

[NI] Fix build

parent 7a0c539a
......@@ -131,7 +131,6 @@ build_test_version_manual:
- merge_requests
when: manual
variables:
BUILD_ARG: build_env=dev
TO: ${CI_REGISTRY_IMAGE}:$CI_COMMIT_REF_SLUG
### Create tag in OpenShift.
......@@ -198,8 +197,6 @@ build_dev_version:
extends: .build_image
only:
- dev
variables:
BUILD_ARG: build_env=dev
### Import image into OpenShift.
import_image_dev_branch_prod:
......
......@@ -14,11 +14,11 @@ ARG build_env
WORKDIR /${WORKING_DIR}/src
ADD . /${WORKING_DIR}/src
# If env is development, install development dependencies
RUN if [ "$build_env" != "prod" ]; then poetry install --no-root --no-interaction --no-ansi; fi
# Install CSaS
RUN pip install -e .
# If env is development, installs also development dependencies.
RUN if [ "$build_env" != "prod" ]; \
then poetry install --no-root --no-interaction --no-ansi && python setup.py develop --no-deps; \
else python setup.py install --no-deps; fi
# PID File for uWSGI
RUN touch /${WORKING_DIR}/src/uwsgi.pid
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment