ci update

This commit is contained in:
Egor Matveev 2021-12-03 10:58:50 +03:00
parent 53ee00ec9c
commit aed905414e

View File

@ -15,12 +15,11 @@ build:
script: script:
- docker build --cache-from=mathwave/sprint-repo:sprint -t mathwave/sprint-repo:sprint . - docker build --cache-from=mathwave/sprint-repo:sprint -t mathwave/sprint-repo:sprint .
- docker push mathwave/sprint-repo:sprint - docker push mathwave/sprint-repo:sprint
after_script:
- docker image rm mathwave/sprint-repo:sprint
.deploy: .deploy:
before_script: before_script:
- docker login -u mathwave -p $DOCKERHUB_PASSWORD - docker login -u mathwave -p $DOCKERHUB_PASSWORD
- docker image rm mathwave/sprint-repo:sprint
script: script:
- docker pull mathwave/sprint-repo:sprint - docker pull mathwave/sprint-repo:sprint
- docker-compose up -d - docker-compose up -d