First test of deploying to the container registry
This commit is contained in:
parent
f1f00257ef
commit
cc090daa6d
@ -9,3 +9,13 @@ pytest:
|
|||||||
- cd /builds/u5500327/wmgzon
|
- cd /builds/u5500327/wmgzon
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
- pytest
|
- pytest
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
image: docker:20.10.16
|
||||||
|
stage: deploy
|
||||||
|
services:
|
||||||
|
- docker:20.10.16-dind
|
||||||
|
script:
|
||||||
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
|
- docker build -t $CI_REGISTRY/group/project/image:latest .
|
||||||
|
- docker push $CI_REGISTRY/group/project/image:latest
|
Loading…
Reference in New Issue
Block a user