diff --git a/.gitignore b/.gitignore index 5b891d5..af5171e 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,9 @@ ### SQLite 3 Database ### data/ +### CICD Registration files ### +cicd/runner-data + ### Flask ### instance/* !instance/.gitignore diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d41a639..2675ab0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ pytest: stage: test script: + - cd wmgzon - python -m venv .venv - source ./.venv/scripts/activate - pip install -r requirements.txt diff --git a/cicd/docker-compose.yml b/cicd/docker-compose.yml new file mode 100644 index 0000000..6d2727b --- /dev/null +++ b/cicd/docker-compose.yml @@ -0,0 +1,8 @@ +version: '3.8' +services: + gitlab-runner: + image: gitlab/gitlab-runner:latest + volumes: + - ./runner-data:/etc/gitlab-runner + - /var/run/docker.sock:/var/run/docker.sock + restart: unless-stopped \ No newline at end of file