Skip to content

ct-itmo/gh-runner-dockerized

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Isolated Runners

Scripts and configs for isolated GitHub Action Runners.

Motivation

By default, GitHub Action Runner runs directly on host system. It is unsecure and may lead to some side effects (e.g. storing some files on the host).

We launch a new container for each workflow run, so runs are isolated from the host environment and apart from each other. Moreover, we prepare some default environment for each type of run to save some time on re-downloading the same tools each time.

Installation

  • Install sysbox-runc.
  • Setup each directory with Dockerfile and .env (example).
  • Add base/upgrade.sh run to cron (each 6 hours is fine). Otherwise GitHub would try to update outdated versions of runners by invoking upgrade tasks, upon completing of which the environment would be recreated, leading to loops.
  • Run <group>/start.sh as many times as you need.

Acknowledgements

This repository is heavily based on PasseiDireto/gh-runner.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published