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 - /var/run/docker.sock:/var/run/docker.sock
deploy: deploy:
mode: replicated mode: replicated
placement:
constraints: [node.role == manager]
restart_policy: restart_policy:
condition: any condition: any
update_config: update_config:

View File

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

View File

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