{
  "manifest_version": "1.0.0",
  "template": {
    "id": "47281ff0-bc20-49a5-9970-1fed6946a514",
    "slug": "autoscaled-github--1",
    "name": "Autoscaled Github Actions Runner",
    "description": "Self-hosted instance of Github Actions runners for Monorepo",
    "url": "https://railway.com/deploy/autoscaled-github--1",
    "upstream": {
      "repo_url": "https://github.com/ggoggam/railway-github-runner-autoscaler"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "github-runner",
      "source": {
        "image": "myoung34/github-runner:latest"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "github-autoscaler",
      "source": {
        "repo": "https://github.com/ggoggam/railway-github-runner-autoscaler"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "LABELS",
      "service": "github-runner",
      "description": "Labels for runners. Populated from autoscaler.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REPO_URL",
      "service": "github-runner",
      "description": "URL to repository",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EPHEMERAL",
      "service": "github-runner",
      "description": "Set 1 for ephemeral runners",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "GITHUB_HOST",
      "service": "github-runner",
      "description": "Github Host. Defaults to https://github.com",
      "secret": false,
      "strategy": "default",
      "default": "https://github.com"
    },
    {
      "key": "ACCESS_TOKEN",
      "service": "github-runner",
      "description": "Github access token . Populated from autoscaler",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RUNNER_SCOPE",
      "service": "github-runner",
      "description": "repo | org. Populated from autoscaler",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "github-autoscaler",
      "description": "Port for autoscaler server (default 8080)",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "LOG_LEVEL",
      "service": "github-autoscaler",
      "description": "debug | info | warn | error",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "MAX_RUNNERS",
      "service": "github-autoscaler",
      "description": "Maximum number of replicas",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "MIN_REPLICAS",
      "service": "github-autoscaler",
      "description": "Minimum number of replicas. Scale to zero if set to 0 during idling",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "RAILWAY_API_TOKEN",
      "service": "github-autoscaler",
      "description": "https://railway.com/account/tokens",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "GITHUB_ACCESS_TOKEN",
      "service": "github-autoscaler",
      "description": "https://github.com/settings/personal-access-tokens",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "GITHUB_RUNNER_SCOPE",
      "service": "github-autoscaler",
      "description": "repo | org",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "GITHUB_RUNNER_LABELS",
      "service": "github-autoscaler",
      "description": "Labels for self-hosted runner instances",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "GITHUB_API_REPOSITORY",
      "service": "github-autoscaler",
      "description": "If using repository runner, fill this variable",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "GITHUB_WEBHOOK_SECRET",
      "service": "github-autoscaler",
      "description": "Webhook to autoscaler public URL (Settings > Webhooks)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_RUNNER_SERVICE_ID",
      "service": "github-autoscaler",
      "description": "Automatically points to the runner service ID within Railway",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "autoscaled-github--1"
      }
    },
    "cli": "railway deploy --template autoscaled-github--1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "47281ff0-bc20-49a5-9970-1fed6946a514",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "4079d190-1048-4a99-8db2-13b0a0dbf39a": {
                  "icon": "https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/githubactions/githubactions-original.svg",
                  "name": "github-runner",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 1000
                  },
                  "source": {
                    "image": "myoung34/github-runner:latest"
                  },
                  "variables": {
                    "LABELS": {
                      "isOptional": true,
                      "description": "Labels for runners. Populated from autoscaler.",
                      "defaultValue": "${{github-autoscaler.GITHUB_RUNNER_LABELS}}"
                    },
                    "REPO_URL": {
                      "isOptional": true,
                      "description": "URL to repository",
                      "defaultValue": "${{github-runner.GITHUB_HOST}}/${{github-autoscaler.GITHUB_API_REPOSITORY}}"
                    },
                    "EPHEMERAL": {
                      "isOptional": true,
                      "description": "Set 1 for ephemeral runners",
                      "defaultValue": "1"
                    },
                    "GITHUB_HOST": {
                      "isOptional": true,
                      "description": "Github Host. Defaults to https://github.com",
                      "defaultValue": "https://github.com"
                    },
                    "ACCESS_TOKEN": {
                      "isOptional": true,
                      "description": "Github access token . Populated from autoscaler",
                      "defaultValue": "${{github-autoscaler.GITHUB_ACCESS_TOKEN}}"
                    },
                    "RUNNER_SCOPE": {
                      "isOptional": true,
                      "description": "repo | org. Populated from autoscaler",
                      "defaultValue": "${{github-runner.GITHUB_RUNNER_SCOPE}}"
                    }
                  }
                },
                "b8a89670-4ddf-4902-b760-8c07c83931e1": {
                  "icon": "https://icon.icepanel.io/Technology/svg/GitHub-Actions.svg",
                  "name": "github-autoscaler",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 3
                  },
                  "source": {
                    "repo": "https://github.com/ggoggam/railway-github-runner-autoscaler",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port for autoscaler server (default 8080)",
                      "defaultValue": "8080"
                    },
                    "LOG_LEVEL": {
                      "isOptional": true,
                      "description": "debug | info | warn | error",
                      "defaultValue": "info"
                    },
                    "MAX_RUNNERS": {
                      "isOptional": true,
                      "description": "Maximum number of replicas",
                      "defaultValue": "5"
                    },
                    "MIN_REPLICAS": {
                      "isOptional": true,
                      "description": "Minimum number of replicas. Scale to zero if set to 0 during idling",
                      "defaultValue": "0"
                    },
                    "RAILWAY_API_TOKEN": {
                      "isOptional": false,
                      "description": "https://railway.com/account/tokens",
                      "defaultValue": "{{RAILWAY_API_TOKEN}}"
                    },
                    "GITHUB_ACCESS_TOKEN": {
                      "description": "https://github.com/settings/personal-access-tokens",
                      "defaultValue": "{{GITHUB_ACCESS_TOKEN}}"
                    },
                    "GITHUB_RUNNER_SCOPE": {
                      "description": "repo | org",
                      "defaultValue": "{{GITHUB_RUNNER_SCOPE}}"
                    },
                    "GITHUB_RUNNER_LABELS": {
                      "isOptional": true,
                      "description": "Labels for self-hosted runner instances",
                      "defaultValue": "railway"
                    },
                    "GITHUB_API_REPOSITORY": {
                      "isOptional": false,
                      "description": "If using repository runner, fill this variable",
                      "defaultValue": "{{GITHUB_API_REPOSITORY}}"
                    },
                    "GITHUB_WEBHOOK_SECRET": {
                      "isOptional": false,
                      "description": "Webhook to autoscaler public URL (Settings > Webhooks)",
                      "defaultValue": "{{GITHUB_WEBHOOK_SECRET}}"
                    },
                    "RAILWAY_RUNNER_SERVICE_ID": {
                      "isOptional": true,
                      "description": "Automatically points to the runner service ID within Railway",
                      "defaultValue": "${{github-runner.RAILWAY_SERVICE_ID}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "github-autoscaler",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": false
  },
  "generated_at": "2026-09-09T12:02:35.481Z",
  "generator_version": "0.1.0"
}
