Update .gitlab-ci.yml file
This commit is contained in:
parent
ecec11d069
commit
ed35ea2afb
@ -4,4 +4,13 @@ build-test:
|
||||
- python --version
|
||||
- pip --version
|
||||
- pip install -r requirements.txt
|
||||
- uvicorn app:app --host 0.0.0.0 --port 80
|
||||
- echo "pytest needs finishing"
|
||||
|
||||
build-docker:
|
||||
image: docker
|
||||
services:
|
||||
- docker:dind
|
||||
script:
|
||||
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER $CI_REGISTRY --password-stdin
|
||||
- docker build -t $CI_REGISTRY_IMAGE .
|
||||
- docker push $CI_REGISTRY_IMAGE
|
Loading…
x
Reference in New Issue
Block a user