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