Attempt to Reuse Build Container for Tests

This commit is contained in:
Alexander Hosking 2022-04-15 14:51:02 -04:00
parent fa3d178692
commit 22aa932054

View File

@ -14,10 +14,22 @@ buiild job:
- pip3 install --upgrade setuptools
- pip3 install Flask gunicorn pytest pytest-cov
- pip3 install pendulum
- echo "DOCKER_IMAGE_NAME_TAG_WITH_DIGEST=${DOCKER_IMAGE_TAG_REF}@$(cat /digest-file)" > out.env
- cat out.env
artifacts:
reports:
dotenv: out.env
test job:
stage: test
image: python:3-buster
needs:
- build
image: ${DOCKER_IMAGE_NAME_TAG_WITH_DIGEST}
before_script:
# versions
- echo "${DOCKER_IMAGE_NAME_TAG_WITH_DIGEST}"
script:
- export PYTHONPATH=.
- export FLASK_APP=period