test stage
This commit is contained in:
parent
f5e91977e7
commit
db691ae411
@ -1,5 +1,6 @@
|
|||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
- test
|
||||||
- deploy-dev
|
- deploy-dev
|
||||||
- deploy-prod
|
- deploy-prod
|
||||||
|
|
||||||
@ -15,6 +16,13 @@ build:
|
|||||||
- docker build -t mathwave/sprint-repo:battleship-nginx nginx
|
- docker build -t mathwave/sprint-repo:battleship-nginx nginx
|
||||||
- docker push mathwave/sprint-repo:battleship-nginx
|
- docker push mathwave/sprint-repo:battleship-nginx
|
||||||
|
|
||||||
|
test:
|
||||||
|
stage: test
|
||||||
|
tags:
|
||||||
|
- dev
|
||||||
|
script:
|
||||||
|
- docker run --rm mathwave/sprint-repo:battleship-back pytest tests
|
||||||
|
|
||||||
.deploy:
|
.deploy:
|
||||||
before_script:
|
before_script:
|
||||||
- docker login -u mathwave -p $DOCKERHUB_PASSWORD
|
- docker login -u mathwave -p $DOCKERHUB_PASSWORD
|
||||||
|
Loading…
Reference in New Issue
Block a user