Lunar CI Agent
Installing the Lunar CI Agent
GitHub Actions (Managed Runners)
- name: Run Lunar CI Agent
uses: earthly/lunar-ci-action@v1
env:
LUNAR_GITHUB_TOKEN: ${{ secrets.LUNAR_GITHUB_TOKEN }}
LUNAR_HUB_TOKEN: ${{ secrets.LUNAR_HUB_TOKEN }}
# See below for the full list of environment variables and optional settingsSelf-Hosted Runners
curl -LO https://github.com/earthly/lunar-dist/releases/download/v1.0.0/lunar-linux-amd64sudo chmod +x lunar-linux-amd64 && mv ./lunar-linux-amd64 /usr/local/bin/lunar# Required export LUNAR_GITHUB_TOKEN=your_github_token export LUNAR_HUB_TOKEN=your_hub_token export LUNAR_HUB_HOST=your_hub_host export LUNAR_HUB_GRPC_PORT=your_grpc_port export LUNAR_HUB_HTTP_PORT=your_http_port # Optional: logs integration export LUNAR_ELASTIC_URL=your_elastic_url export LUNAR_ELASTIC_API_KEY=your_elastic_api_key export LUNAR_TENANT_ID=your_tenant_id # Optional (defaults shown) export LUNAR_STATE_DIR=/var/lib/lunar export LUNAR_LOG_LEVEL=info export LUNAR_LOG_FORMAT=json export LUNAR_UPDATE_PERIOD=60sLUNAR_RUN_CMD="/path/to/github/runner/run.sh" lunar
GitHub Token Permissions
Scope
Level
Purpose
Scope
Purpose
Configuring the CI Agent
Next Steps
Last updated
