Registed a runner in Github

Registed a runner in Github

Publish Date: Jun 5
0 2

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

Comments 2 total

Add comment