Attempt to Reuse Build Container for Tests
This commit is contained in:
parent
fa3d178692
commit
22aa932054
@ -14,10 +14,22 @@ buiild job:
|
|||||||
- pip3 install --upgrade setuptools
|
- pip3 install --upgrade setuptools
|
||||||
- pip3 install Flask gunicorn pytest pytest-cov
|
- pip3 install Flask gunicorn pytest pytest-cov
|
||||||
- pip3 install pendulum
|
- 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:
|
test job:
|
||||||
stage: test
|
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:
|
script:
|
||||||
- export PYTHONPATH=.
|
- export PYTHONPATH=.
|
||||||
- export FLASK_APP=period
|
- export FLASK_APP=period
|
||||||
|
Loading…
Reference in New Issue
Block a user