0.0.2 • Published 6 months ago

bachten v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

Runner Monitor

A simple CLI tool to check and restart gitlab runners on macstadium.

Installation

This tool can be run via npx

 npx bachten <command> [subcommand]

Configuration

These tool needs some environment variable defined

envdescription
RUNNER_MONITOR_GITLAB_TOKENToken to access Gitlab API, needs only read access
RUNNER_MONITOR_GITLAB_URLURL of the Gitlab instance
RUNNER_MONITOR_GITLAB_TAGSoptional Comma-separated tags by which to filter runners, default "android,ios"
RUNNER_MONITOR_SLACK_URLoptional Slack webhook url to use in sending messages
RUNNER_MONITOR_MS_USERNAMEoptional Username on Macstadium, only used for restart command/subcommand
RUNNER_MONITOR_MS_PASSWORDoptional Password on Macstadium, only used for restart command/subcommand

Commands

Screenshot | command | description| arguments/subcommand | | -- | -- | -- | | check | Check for offline runners | restart - optional, restart all offline machines on MacStadium | | restart | Restart and offline machine | [ip-address] - IP of the machine to be restarted on MacStadium |

Contributing

PRs and issues are welcome

0.0.2

6 months ago

0.0.1

6 months ago