gitlab
This commit is contained in:
parent
823c7575df
commit
dfbcf206ee
@ -64,7 +64,7 @@ services:
|
||||
gitlab-runner:
|
||||
image: mathwave/sprint-repo:gitlab-runner
|
||||
volumes:
|
||||
- /home:/home
|
||||
- /etc/builds:/etc/builds
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
environment:
|
||||
GITLAB_REGISTRATION_TOKEN: $GITLAB_REGISTRATION_TOKEN
|
||||
|
@ -2,15 +2,8 @@ stages:
|
||||
- deploy-dev
|
||||
- deploy-prod
|
||||
|
||||
|
||||
.deploy:
|
||||
before_script:
|
||||
- docker volume create --opt type=volume --opt device=/home gitlab-runner
|
||||
|
||||
deploy-dev:
|
||||
stage: deploy-dev
|
||||
extends:
|
||||
- .deploy
|
||||
tags:
|
||||
- dev
|
||||
rules:
|
||||
@ -22,8 +15,6 @@ deploy-dev:
|
||||
|
||||
deploy-prod:
|
||||
stage: deploy-prod
|
||||
extends:
|
||||
- .deploy
|
||||
tags:
|
||||
- prod
|
||||
only:
|
||||
|
Loading…
Reference in New Issue
Block a user