/Github_runner

Install scripts for self-hosted runner

Primary LanguageShell

Github runner

install scripts for self-hosted runner

Setup

Get files

git clone https://github.com/Nuwa-genomics/Github_runner.git

Install docker

cd Install_scripts
sudo chmod +x dockerconf.sh
sudo ./dockerconf.sh

Important

Add the user to the docker group

Create .env file in Github_runner/Runner_scripts

.env

REPO=Nuwa-genomics/Nuwa
TOKEN=<Your-token-here>
RUNNER_VERSION="2.314.1"
DEBIAN_FRONTEND=noninteractive
USER=<Your-linux-user>

Important

Remember to add your token and linux username!

Now activate

export $(cat .env | xargs) && env

Install deps for runner

sudo ./install.sh

Configure runner

This will let you create a name for your runner, work directory and tags.

./configure

Run runner

sudo /home/$USER/actions-runner/run.sh

Tip

Add the above to a crontab so it runs on reboot

Bring up containers

cd Docker
docker-compose up -d --build