dockerhub

This commit is contained in:
Egor Matveev 2021-11-06 22:58:56 +03:00
parent b3fc01c253
commit b53b2d6ffd
2 changed files with 6 additions and 4 deletions

View File

@ -12,7 +12,8 @@ build:
tags:
- main
script:
- docker build -t sprint .
- docker build -t mathwave/sprint-repo:sprint .
- docker push mathwave/sprint-repo:sprint
deploy-dev:
stage: deploy-dev
@ -26,6 +27,7 @@ deploy-dev:
variables:
PORT: 80
script:
- docker pull mathwave/sprint-repo:sprint
- docker-compose up -d
deploy-prod:

View File

@ -18,7 +18,7 @@ services:
- "5432:5432"
web:
image: sprint
image: mathwave/sprint-repo:sprint
restart: always
environment:
PORT: $PORT
@ -34,7 +34,7 @@ services:
- rabbitmq
bot:
image: sprint
image: mathwave/sprint-repo:sprint
restart: always
command: python manage.py bot
depends_on:
@ -51,7 +51,7 @@ services:
worker:
restart: always
image: sprint
image: mathwave/sprint-repo:sprint
privileged: true
command: scripts/create_worker.sh
environment: