Skip to content

Setup for Self Hosted Actions Runner to deploy the API

sreevardhanreddi edited this page Jul 14, 2021 · 7 revisions

Steps for setting up the runner on VM

  1. Go to the settings tab in the GitHub project and click on the Actions tab on the left. Click here

  2. There you'll notice Runners below the Actions tab, click on the Runners tab. Click here

  3. On the Runners page click on Add runner. Click here

  4. On the Add runner page choose the Operating System as Linux and Architecture type as X64, and follow the instructions mentioned below. Before following the instructions, keep in mind that installing the Actions runner with root user privileges is discouraged. It is advised to create a new User with non-root privileges and follow the instructions to add the runner.

  5. After creating the new User on the VM for Actions runner follow the instructions specified on the page, download and extract the runner package

  6. After downloading the runner package go to the configure section and configure the runner, after configuring the runner, do not run ./run.sh this will only the runner in transient mode, to make the runner a systemd service run the command sudo ./svc.sh install

  7. This will create a systemd service so the runner will automatically run even after VM restarts, after installing the runner, start the runner using the command sudo ./svc.sh start, you can check the status of the runner using the command sudo ./svc.sh status

Clone this wiki locally