Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Tool for executing GitLab jobs into VM created by libvirt.

License

Notifications You must be signed in to change notification settings

iveahugeship/libvirt-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

libvirt-driver

Just a script that you can use as a custom Giltab Runner driver. Gitlab will use the script to create the VM from the base image and to execute jobs there.

Read the libvirt-driver.sh for more information about script arguments or the base image building.

Example

To using libvirt-driver add this to your Gitlab Runner configuration:

[[runners]]
executor = "custom"
[runners.custom]
cleanup_args = ["cleanup"]
cleanup_exec = "/usr/lib/gitlab-runner/libvirt-driver.sh"
prepare_args = ["create", "-i", "<base_image>", "-c", "8"]
prepare_exec = "/usr/lib/gitlab-runner/libvirt-driver.sh"
run_args = ["run"]
run_exec = "/usr/lib/gitlab-runner/libvirt-driver.sh"