From b53b2d6ffd2482d4c0d1556f8e7d7783452403b6 Mon Sep 17 00:00:00 2001 From: Egor Matveev Date: Sat, 6 Nov 2021 22:58:56 +0300 Subject: [PATCH] dockerhub --- .gitlab-ci.yml | 4 +++- docker-compose.yaml | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8f7c753..c62ca85 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: diff --git a/docker-compose.yaml b/docker-compose.yaml index 953173a..b69397e 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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: