This commit is contained in:
Egor Matveev 2021-11-06 23:14:04 +03:00
parent 478b8ab912
commit 627153001d

View File

@ -16,7 +16,15 @@ build:
- docker build -t mathwave/sprint-repo:sprint . - docker build -t mathwave/sprint-repo:sprint .
- docker push mathwave/sprint-repo:sprint - docker push mathwave/sprint-repo:sprint
.deploy:
script:
- docker login -u mathwave -p Fuck0ffb1tch
- docker pull mathwave/sprint-repo:sprint
- docker-compose up -d
deploy-dev: deploy-dev:
extends:
- .deploy
stage: deploy-dev stage: deploy-dev
tags: tags:
- main - main
@ -24,15 +32,12 @@ deploy-dev:
- if: '$CI_COMMIT_BRANCH == "master"' - if: '$CI_COMMIT_BRANCH == "master"'
when: on_success when: on_success
- when: manual - when: manual
variables: variables:
PORT: 80 PORT: 80
script:
- docker login -u mathwave -p Fuck0ffb1tch
- docker pull mathwave/sprint-repo:sprint
- docker-compose up -d
deploy-prod: deploy-prod:
extends:
- .deploy
stage: deploy-prod stage: deploy-prod
tags: tags:
- prod - prod
@ -41,5 +46,3 @@ deploy-prod:
when: manual when: manual
variables: variables:
PORT: 443 PORT: 443
script:
- docker-compose up -d