Public
Authored by morph027

Extract jobs from Gitlab CI and run in Docker

Edited

Just parse Gitlab CI YAML file and run the job (first parameter) in a container accordingly.

Example:

./gitlab-runner.py test

Scope

  • currently only parsing dockerized jobs
  • spawns services and links them
  • you can add your secret vars and every other var you need (like fake values for these) into a file .env
  • see gitlab-runner.py -h for more

Requirements

  • python
  • docker (pip install docker)
  • termcolor (pip install termcolor)
  • yaml (pip install pyaml)
gitlab-runner.py 7.42 KB
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment