DEV Community

Cover image for Registed a runner in Github
Amit Singh Bisht
Amit Singh Bisht

Posted on

Registed a runner in Github

How to register a runner ?

Runners

Add new self-hosted runner

Download

# Create a folder
$ mkdir actions-runner && cd actions-runnerCopied! 

# Download the latest runner package
$ curl -o actions-runner-linux-x64-2.325.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.325.0/actions-runner-linux-x64-2.325.0.tar.gz

# Optional: Validate the hash
$ echo "5020xxxxxxd85cxx6059xxxxe0de8fxxx753xxxx9x558exxxxxxd43exex518xx  actions-runner-linux-x64-2.325.0.tar.gz" | shasum -a 256 -c

# Extract the installer
$ tar xzf ./actions-runner-linux-x64-2.325.0.tar.gz
Enter fullscreen mode Exit fullscreen mode

Configure

# Create the runner and start the configuration experience
$ ./config.sh --url https://github.com/amit-singh-bisht/lambda-playwright --token AxxxFxxxJ4xxx5BxxxEBxxxIIxxxx

# Last step, run it!
$ ./run.sh
Enter fullscreen mode Exit fullscreen mode

Using your self-hosted runner

# Use this YAML in your workflow file for each job
runs-on: self-hosted
Enter fullscreen mode Exit fullscreen mode

Start a instance on EC2

Search

Resources

Instances

Launch an Instance

Instances

SSH to instance from local machine

make actions directory

Connected to GitHub

Machine in Offline state

run.sh

Machine in Idle state

Top comments (0)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.