Skip to content

KillWolfVlad/actions-runner-compose

Repository files navigation

actions-runner-compose

deploy-image


Like Kubernetes controller for GitHub Actions self-hosted runners but for Docker Compose.

Install

On Your Server

  1. mkdir actions-runner-compose && cd actions-runner-compose
  2. nano .env with content from .env.example
  3. nano compose.yaml with content below (you can find versions in GitHub Packages)
name: actions-runner-compose

services:
  actions-runner-compose:
    container_name: arc
    image: ghcr.io/killwolfvlad/actions-runner-compose:latest
    restart: unless-stopped
    environment:
      PORT: "8080"
      WEBHOOK_PATH: ${WEBHOOK_PATH}
      WEBHOOK_SECRET: ${WEBHOOK_SECRET}
      MAX_RUNNERS: ${MAX_RUNNERS}
      RUNNER_IMAGE: ${RUNNER_IMAGE}
      REPOSITORY_0: ${REPOSITORY_0}
      REPOSITORY_1: ${REPOSITORY_1}
    ports:
      - 8080:8080
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
  1. docker compose up -d
  2. Setup Caddy or any other reverse proxy
yourdomain.com {
    reverse_proxy http://localhost:8080
}

Setup Webhook in GitHub Repository

  • Payload URL: https://yourdomain.com/${WEBHOOK_PATH}
  • Content type: application/json
  • Secret: ${WEBHOOK_SECRET}
  • SSL verification: Enable SSL verification
  • Which events would you like to trigger this webhook: Let me select individual events.
    • Workflow jobs
  • Active: true

Maintainers

License

This repository is released under version 2.0 of the Apache License.

About

Like Kubernetes controller for GitHub Actions self-hosted runners but for Docker Compose

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors