Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github and Gitea action runner images #205

Open
scottyeager opened this issue Jan 19, 2024 · 0 comments
Open

Github and Gitea action runner images #205

scottyeager opened this issue Jan 19, 2024 · 0 comments

Comments

@scottyeager
Copy link
Contributor

Required by: https://git.ourworld.tf/threefold_coop/circle_prodmgmt_grid/issues/2

So far I have tested the Github runner. Here are my notes based on a trial run inside an Ubuntu micro VM:

Install runner app

This is straight from the Github instructions:

# Create a folder
$ mkdir actions-runner && cd actions-runner# Download the latest runner package
$ curl -o actions-runner-linux-x64-2.311.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.311.0/actions-runner-linux-x64-2.311.0.tar.gz# Optional: Validate the hash
$ echo "29fc8cf2dab4c195bb147384e7e2c94cfd4d4022c793b346a6175435265aa278  actions-runner-linux-x64-2.311.0.tar.gz" | shasum -a 256 -c# Extract the installer
$ tar xzf ./actions-runner-linux-x64-2.311.0.tar.gz

Configure

There are two mandatory config fields, url and token (these will be env variables to the image). The url can either be for a repo or an org, based on user preference. That doesn't matter for the VM.

If we want to run as root, need to allow that explicitly. Maybe should add a regular user and run as that?

export RUNNER_ALLOW_RUNASROOT=true
./config.sh --unattended --url $URL --token $TOKEN

Run

./run.sh
@xmonader xmonader modified the milestone: 3.15.x Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants