This commit is contained in:
Administrator 2022-08-17 13:07:19 +03:00
parent dbb95220bc
commit a794fa80c5
2 changed files with 11 additions and 14 deletions

View File

@ -64,12 +64,8 @@ services:
gitlab-runner: gitlab-runner:
image: mathwave/sprint-repo:gitlab-runner image: mathwave/sprint-repo:gitlab-runner
volumes: volumes:
- type: volume - gitlab-runner:/home
source: gitlab-runner - /var/run/docker.sock:/var/run/docker.sock
target: /home
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
environment: environment:
GITLAB_REGISTRATION_TOKEN: $GITLAB_REGISTRATION_TOKEN GITLAB_REGISTRATION_TOKEN: $GITLAB_REGISTRATION_TOKEN
deploy: deploy:
@ -81,11 +77,3 @@ services:
update_config: update_config:
parallelism: 1 parallelism: 1
order: start-first order: start-first
volumes:
gitlab-runner:
driver: local
driver_opts:
o: volume
type: none
device: /home/

View File

@ -2,8 +2,15 @@ stages:
- deploy-dev - deploy-dev
- deploy-prod - deploy-prod
.deploy:
before-script:
- docker volume create --name gitlab-runner --driver local --opt type=volume --opt device=/home
deploy-dev: deploy-dev:
stage: deploy-dev stage: deploy-dev
extends:
- .deploy
tags: tags:
- dev - dev
rules: rules:
@ -15,6 +22,8 @@ deploy-dev:
deploy-prod: deploy-prod:
stage: deploy-prod stage: deploy-prod
extends:
- .deploy
tags: tags:
- prod - prod
only: only: