From 3b41698bb1d0e8afb82e0fe2625c31e186d3cec6 Mon Sep 17 00:00:00 2001 From: Administrator Date: Wed, 17 Aug 2022 16:10:02 +0300 Subject: [PATCH] gitlab --- .deploy/deploy-dev.yaml | 7 ++----- .gitlab-ci.yml | 9 --------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/.deploy/deploy-dev.yaml b/.deploy/deploy-dev.yaml index 31809c2..059d5ca 100644 --- a/.deploy/deploy-dev.yaml +++ b/.deploy/deploy-dev.yaml @@ -64,7 +64,7 @@ services: gitlab-runner: image: mathwave/sprint-repo:gitlab-runner volumes: - - gitlab-runner:/home + - /home:/home - /var/run/docker.sock:/var/run/docker.sock environment: GITLAB_REGISTRATION_TOKEN: $GITLAB_REGISTRATION_TOKEN @@ -76,7 +76,4 @@ services: condition: any update_config: parallelism: 1 - order: start-first - -volumes: - gitlab-runner: \ No newline at end of file + order: start-first \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bca2d71..769de96 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,15 +2,8 @@ stages: - deploy-dev - deploy-prod - -.deploy: - before_script: - - docker volume create --driver local --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: