Skip to main content

GitHub Self-hoster Runner

Create a folder

Go to the "Settings" Tab in git hub repository
Then go to "Actions --> Runners"
Click "New self-hosted runner" button
Select the option"Linux"
mkdir actions-runner-1 && cd actions-runner-1
Follow the steps upto "./config.sh --url https://github.com/AC-Documentation-Org/acdocs --token XXXXXXXXXXXXXXXXXXXXXX"

Provide the "Config" values:
Runner group: Press Enter (default)
Name of the runner:

dev-docs-01-runner-1

Additional labels:

acdocs

Enter name of work folder: [press Enter for _work]
Then:

sudo ./svc.sh install
sudo ./svc.sh start
sudo ./svc.sh status

To check the status of the runner service which contains the name "runner"(Optional):

systemctl list-unit-files | grep runner

To Check/Start/Stop the the runner service (Optional):

sudo systemctl status actions.runner.AC-Documentation-Org-acdocs.prod-docs-01-runner-1.service
sudo systemctl stop actions.runner.AC-Documentation-Org-acdocs.prod-docs-01-runner-1.service
sudo systemctl start actions.runner.AC-Documentation-Org-acdocs.prod-docs-01-runner-1.service