Download the PHP package jonpugh/github-runner without Composer

On this page you can find all versions of the php package jonpugh/github-runner. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package github-runner

github-runner-starter

image

A single Bash script to install, configure, optionally launch, and clean up GitHub self-hosted runners. It automates:

This project also includes a minimal Docker setup for local testing and examples.

Features

Requirements

Installation

You can use the script directly, or install it via Composer so github-runner-starter is available on your PATH.

Option A: Use the script directly

Option B: Composer

If Composer is available in your environment:

composer.json excerpt:

Quick start

1) Ensure you have a suitable PAT and know the owner/repo you want to register the runner to. 2) In a working directory, create a .env file or pass flags (see below). 3) Run the script.

Example with flags, including launching the runner immediately:

If you omit --run, the script will download and configure the runner, but not launch run.sh. You can start it later manually from the runner directory.

CLI options and environment variables

All options can be provided either as CLI flags or via environment variables. A .env file in the current working directory will be sourced automatically.

See .env.example for a full set of variables and inline documentation.

How it works

At a high level the script does the following: 1) Verify inputs, source .env if present, and compute defaults. 2) Request a short-lived registration token from the GitHub API for the given repository. 3) Determine the latest runner version and your architecture. 4) Download the appropriate runner tarball if not already present and extract it. 5) Run the runner’s config.sh with your parameters and labels. 6) Optionally start run.sh and wait on it.

On SIGTERM (stop) the script attempts to stop the runner and unregister it using config.sh remove with the same registration token. On SIGINT (Ctrl+C/cancel) it can optionally delete the runner directory if RUNNER_CLEANUP=yes is set.

Examples

Docker usage (optional)

This repository includes a Dockerfile and docker-compose.yml for testing/development.

The compose file passes through GITHUB_TOKEN and targets this repo by default. You can override env vars via your shell or a .env file.

Each container will get a distinct RUNNER_CONFIG_NAME like runner1@hostname, runner2@hostname, etc.

Note: The provided Docker image is for development. It installs dependencies and runs as the runner user in /github-runner-starter.

Troubleshooting

Security considerations

Notes

I wrote the shell script. JetBrains Junie AI wrote the README from that.

License

MIT License. See LICENSE for details.

Author


All versions of github-runner with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jonpugh/github-runner contains the following files

Loading the files please wait ...