Revert to proper container images

This commit is contained in:
Alexander Hosking 2022-04-15 15:13:00 -04:00
parent 7c60d0dd4b
commit 34806e43a1

View File

@ -2,7 +2,7 @@ stages:
- build - build
- test - test
build: buiild job:
stage: build stage: build
image: python:3-buster image: python:3-buster
script: script:
@ -14,20 +14,10 @@ build:
- 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:
stage: test stage: test
needs: [build] image: python:3-buster
image: ${DOCKER_IMAGE_NAME_TAG_WITH_DIGEST}
before_script:
- echo "${DOCKER_IMAGE_NAME_TAG_WITH_DIGEST}"
script: script:
- export PYTHONPATH=. - export PYTHONPATH=.
- export FLASK_APP=period - export FLASK_APP=period