#11 Created a separate runner withappropriate container for running

This commit is contained in:
Luke Else 2024-02-16 14:02:07 +00:00
parent 7551da4aaa
commit e5308ecda2
2 changed files with 21 additions and 10 deletions

View File

@ -5,18 +5,22 @@ variables:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
# pytest:
# stage: test
# script:
# - cd /builds/u5500327/wmgzon
# - pip install -r requirements.txt
# - pytest
pytest:
stage: test
tags:
- python
script:
- cd /builds/u5500327/wmgzon
- pip install -r requirements.txt
- pytest
deploy:
stage: deploy
image: docker:latest
tags:
- docker
image: docker:20.10.16
services:
- name: docker:dind
- name: docker:20.10.16-dind
alias: docker
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY

View File

@ -1,8 +1,15 @@
version: '3.8'
services:
gitlab-runner:
gitlab-runner-python:
image: gitlab/gitlab-runner:latest
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
restart: unless-stopped