This commit is contained in:
Administrator 2022-08-16 21:47:15 +03:00
parent 85523c9f89
commit a6e9727fe2
3 changed files with 6 additions and 2 deletions

View File

@ -67,6 +67,8 @@ services:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
mode: replicated
placement:
constraints: [node.role == manager]
restart_policy:
condition: any
update_config:

View File

@ -66,6 +66,8 @@ services:
image: mathwave/sprint-repo:gitlab-runner
volumes:
- /var/run/docker.sock:/var/run/docker.sock
placement:
constraints: [node.role == manager]
deploy:
mode: replicated
restart_policy:

View File

@ -6,7 +6,7 @@ stages:
build:
stage: build
tags:
- demo
- dev
script:
- echo $CI_RUNNER_SHORT_TOKEN
- docker login -u mathwave -p $DOCKERHUB_PASSWORD
@ -16,7 +16,7 @@ build:
deploy-dev:
stage: deploy-dev
tags:
- demo
- dev
rules:
- if: '$CI_COMMIT_BRANCH == "master"'
when: on_success