gitlab
This commit is contained in:
parent
259551db8d
commit
3b41698bb1
@ -64,7 +64,7 @@ services:
|
|||||||
gitlab-runner:
|
gitlab-runner:
|
||||||
image: mathwave/sprint-repo:gitlab-runner
|
image: mathwave/sprint-repo:gitlab-runner
|
||||||
volumes:
|
volumes:
|
||||||
- gitlab-runner:/home
|
- /home:/home
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
environment:
|
environment:
|
||||||
GITLAB_REGISTRATION_TOKEN: $GITLAB_REGISTRATION_TOKEN
|
GITLAB_REGISTRATION_TOKEN: $GITLAB_REGISTRATION_TOKEN
|
||||||
@ -76,7 +76,4 @@ services:
|
|||||||
condition: any
|
condition: any
|
||||||
update_config:
|
update_config:
|
||||||
parallelism: 1
|
parallelism: 1
|
||||||
order: start-first
|
order: start-first
|
||||||
|
|
||||||
volumes:
|
|
||||||
gitlab-runner:
|
|
@ -2,15 +2,8 @@ stages:
|
|||||||
- deploy-dev
|
- deploy-dev
|
||||||
- deploy-prod
|
- deploy-prod
|
||||||
|
|
||||||
|
|
||||||
.deploy:
|
|
||||||
before_script:
|
|
||||||
- docker volume create --driver local --opt type=volume --opt device=/home gitlab-runner
|
|
||||||
|
|
||||||
deploy-dev:
|
deploy-dev:
|
||||||
stage: deploy-dev
|
stage: deploy-dev
|
||||||
extends:
|
|
||||||
- .deploy
|
|
||||||
tags:
|
tags:
|
||||||
- dev
|
- dev
|
||||||
rules:
|
rules:
|
||||||
@ -22,8 +15,6 @@ deploy-dev:
|
|||||||
|
|
||||||
deploy-prod:
|
deploy-prod:
|
||||||
stage: deploy-prod
|
stage: deploy-prod
|
||||||
extends:
|
|
||||||
- .deploy
|
|
||||||
tags:
|
tags:
|
||||||
- prod
|
- prod
|
||||||
only:
|
only:
|
||||||
|
Loading…
Reference in New Issue
Block a user