Revert to proper container images
This commit is contained in:
parent
7c60d0dd4b
commit
34806e43a1
@ -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
|
||||||
@ -41,4 +31,4 @@ test:
|
|||||||
artifacts:
|
artifacts:
|
||||||
when: always
|
when: always
|
||||||
reports:
|
reports:
|
||||||
junit: report.xml
|
junit: report.xml
|
||||||
|
Loading…
Reference in New Issue
Block a user