gitlab
This commit is contained in:
parent
85523c9f89
commit
a6e9727fe2
@ -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:
|
||||||
|
@ -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:
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user