Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Unraid Github Runner - repo level: support thread

Featured Replies

[Draft Until App(s) Published]  - Technically, this is my second App but who is actually at this point. 

 

I created an Unraid app for running self-hosted Github runners for repos as a fun project. I took myoung34/github-runner  and converted to an Unraid App because I said I would in this thread: 

 

If you're interested in using it, all you to do is 

 

  • Have github account 🙄
  • Create new gtihub project 
  • Go to your personal repository on Github.

  • Click on the "Settings" tab.

  • Click on "Actions" in the left sidebar.

  • Click on "Add runner".

  • Copy the token and url that shows up in the configure section. Ex:

./config.cmd --url --> [URL] <---  --token --->[TOKEN]<--->

 

In Unraid 

  • set URL and Token to above the above information
  • set /tmp/github-runner-your-repo to some share on your unraid NAS

 

Pro-Tip: Make sure the working patch is unique of you have multiple containers. Example Below:

 

/mnt/user/misc/actions-runner/user/project/1/

/mnt/user/misc/actions-runner/user/project/2/

/mnt/user/misc/actions-runner/user/project/.../

Edited by QuentinM
Updated the title

  • QuentinM changed the title to Unraid Github Runner - repo level: support thread
  • 2 months later...

Was just looking for it! thanks for converting it to UD!

 

I tried running it and it was running/idle. I changed the "runs-on" from "ubuntu-latest"to "self-hosted"  on one of my workflows/actions, but I found an issue with the Docker Buildx set up. any idea how to resolve this issue?

 

Issue:

image.thumb.png.50fd2d31235bade34e3bdd4020f871f1.png

 

Log:

Runner reusage is disabled
Configuring

--------------------------------------------------------------------------------
|        ____ _ _   _   _       _          _        _   _                      |
|       / ___(_) |_| | | |_   _| |__      / \   ___| |_(_) ___  _ __  ___      |
|      | |  _| | __| |_| | | | | '_ \    / _ \ / __| __| |/ _ \| '_ \/ __|     |
|      | |_| | | |_|  _  | |_| | |_) |  / ___ \ (__| |_| | (_) | | | \__ \     |
|       \____|_|\__|_| |_|\__,_|_.__/  /_/   \_\___|\__|_|\___/|_| |_|___/     |
|                                                                              |
|                       Self-hosted runner registration                        |
|                                                                              |
--------------------------------------------------------------------------------

# Authentication


√ Connected to GitHub

# Runner Registration




√ Runner successfully added
√ Runner connection is good

# Runner settings


√ Settings Saved.


√ Connected to GitHub

Current runner version: '2.309.0'
2023-09-26 19:33:32Z: Listening for Jobs
2023-09-26 19:35:14Z: Running job: build
2023-09-26 19:35:38Z: Job build completed with result: Failed

UD Docker Template Config:

image.thumb.png.531cb18d05c9d2cf91a29b6fae76c3bb.png

 

 

Any help is appreciated! @QuentinM

Edited by Zippox
Issue

  • 7 months later...

As I mentioned in the org-level thread, I was able to set up this repo-level runner and have it process jobs.

 

However, it requires a lot of babysitting at the moment. Almost daily it becomes unregistered from the repo and I have to generate a new token and update it in the template config so that it gets re-registered with the repo. My hunch is that this happens when the container is stopped or restarted.

 

Any idea if there's a way to fix this issue so it works more hands off?

  • 9 months later...
  • Author

Sorry for the late response, but given Unraid support stack sets, I don't use this docker app anymore.  Below is an example my compose file and env configuration 

Compose File

 

services:
  github-runner:
    container_name: ${RUNNER_NAME}
    image: myoung34/github-runner:latest
    environment:
      ORG_NAME: ${ORG_NAME}
      RUNNER_NAME: ${RUNNER_NAME}
      RUNNER_TOKEN: ${RUNNER_TOKEN}
      RUNNER_WORKDIR: ${RUNNER_WORKDIR}/work
      RUNNER_SCOPE: 'org'
      LABELS: linux,x64
    security_opt:
      - label:disable
    volumes:
      - '/var/run/docker.sock:/var/run/docker.sock'
      - '${RUNNER_WORKDIR}:${RUNNER_WORKDIR}'

 

Env. File 

RUNNER_NAME=<ex:unraid_gh_runner_ex_1>
RUNNER_TOKEN=<ex:KeyfromRunner>
ORG_NAME=<yourOrgName>
RUNNER_WORKDIR=<example:/mnt/user/misc/actions-runner/unraid_gh_runner_ex_1>

 

Ref:https://github.com/myoung34/docker-github-actions-runner

Edited by QuentinM
type-o fix

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.