at-wat / actions-runner

GitHub Actions Runner Docker image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

actions-runner: GitHub Actions runner docker image

notice

2.287.1

Due to the upstream changes actions/runner#1494 and actions/runner#1558, runner config must be recreated to avoid infinite update loop.

Make sure config.sh from this repository is up-to-date when recreating the config.

example usage

Read https://docs.github.com/en/actions/hosting-your-own-runners/adding-self-hosted-runners to understand usual configuration of the hosted-runner.

# * Clone at-wat/actions-runner
cd /path/to/your/workdir
git clone https://github.com/at-wat/actions-runner.git

# * Setup runner config
sudo mkdir -p /opt/actions-runner
sudo chown ${USER}: /opt/actions-runner
cd /opt/actions-runner
ln -s /path/to/your/workdir/actions-runner/config.sh ./
ln -s /path/to/your/workdir/actions-runner/run.sh ./
./config.sh --url https://github.com/OWNER/REPO --token SELF_HOSTED_RUNNER_TOKEN

# * Run runner as a systemd service
sudo cp /path/to/your/workdir/actions-runner/examples/actions-runner.service /etc/systemd/system/
sudo systemctl enable actions-runner.service
sudo systemctl start actions-runner.service

About

GitHub Actions Runner Docker image

License:Apache License 2.0


Languages

Language:Dockerfile 54.7%Language:Shell 42.7%Language:Makefile 2.6%