diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f54750a..6f9b2ca 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,7 @@ stages: - build - test -build: +buiild job: stage: build image: python:3-buster script: @@ -14,20 +14,10 @@ build: - 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: +test job: stage: test - needs: [build] - image: ${DOCKER_IMAGE_NAME_TAG_WITH_DIGEST} - before_script: - - echo "${DOCKER_IMAGE_NAME_TAG_WITH_DIGEST}" + image: python:3-buster script: - export PYTHONPATH=. - export FLASK_APP=period @@ -41,4 +31,4 @@ test: artifacts: when: always reports: - junit: report.xml \ No newline at end of file + junit: report.xml