diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b9c0b80..44c39cd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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