dockerhub
This commit is contained in:
parent
b3fc01c253
commit
b53b2d6ffd
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user