Skip to content
Snippets Groups Projects

gitlab_runner: Add VM based executor (libvirt-executor)

Merged Kristian Klausen requested to merge klausenbusk/infrastructure:custom-executor into master
Compare and Show latest version
1 file
+ 0
10
Compare changes
  • Side-by-side
  • Inline
@@ -46,16 +46,6 @@ wait_for_ssh() {
exit "${SYSTEM_FAILURE_EXIT_CODE:-1}"
}
wait_for_vm_shutdown() {
for _ in {1..10}; do
if LC_ALL=C.UTF-8 virsh domstate "${1}" | grep -F "shut off"; then
return 0
fi
sleep 1
done
return 1
}
# https://docs.gitlab.com/runner/executors/custom.html#prepare
prepare() {
# shellcheck disable=SC2064
Loading