#11 Created a separate runner withappropriate container for running
This commit is contained in:
parent
7551da4aaa
commit
e5308ecda2
@ -5,18 +5,22 @@ variables:
|
|||||||
DOCKER_HOST: tcp://docker:2375/
|
DOCKER_HOST: tcp://docker:2375/
|
||||||
DOCKER_DRIVER: overlay2
|
DOCKER_DRIVER: overlay2
|
||||||
|
|
||||||
# pytest:
|
pytest:
|
||||||
# stage: test
|
stage: test
|
||||||
# script:
|
tags:
|
||||||
# - cd /builds/u5500327/wmgzon
|
- python
|
||||||
# - pip install -r requirements.txt
|
script:
|
||||||
# - pytest
|
- cd /builds/u5500327/wmgzon
|
||||||
|
- pip install -r requirements.txt
|
||||||
|
- pytest
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
image: docker:latest
|
tags:
|
||||||
|
- docker
|
||||||
|
image: docker:20.10.16
|
||||||
services:
|
services:
|
||||||
- name: docker:dind
|
- name: docker:20.10.16-dind
|
||||||
alias: docker
|
alias: docker
|
||||||
script:
|
script:
|
||||||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
|
@ -1,8 +1,15 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
services:
|
services:
|
||||||
gitlab-runner:
|
gitlab-runner-python:
|
||||||
image: gitlab/gitlab-runner:latest
|
image: gitlab/gitlab-runner:latest
|
||||||
volumes:
|
volumes:
|
||||||
- ./runner-data:/etc/gitlab-runner
|
- ./runner-data-python:/etc/gitlab-runner
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
gitlab-runner-docker:
|
||||||
|
image: gitlab/gitlab-runner:latest
|
||||||
|
volumes:
|
||||||
|
- ./runner-data-docker:/etc/gitlab-runner
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
Loading…
Reference in New Issue
Block a user