osmates runner gitlab
The stages of GitLab Runner's custom executor, each job in a throwaway clone.
osmates runner gitlab <subcommand>In GitLab Runner's config.toml, set executor = "custom", then config_exec, prepare_exec, run_exec and cleanup_exec to this program's path, with config_args = ["runner", "gitlab", "config", "--from", "<machine>"] and the stage's name for the others. The clone stops, and is deleted, if GitLab Runner ends before cleanup. Its scripts run in bash in Linux and macOS, and in PowerShell 7 in Windows. The machine or template needs git, and gitlab-runner on its PATH for artifacts and caches.
Subcommands
osmates runner gitlab configPrint the job's folders, clone and shell, as GitLab Runner's config stage reads them.osmates runner gitlab prepareClone the machine for the job and start it, as GitLab Runner's prepare stage.osmates runner gitlab runRun one of the job's scripts in its clone, as GitLab Runner's run stage.osmates runner gitlab cleanupDelete the job's clone, as GitLab Runner's cleanup stage, which runs after a failure too.