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
- 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
junit: report.xml