Sign inSign up

kairen/github-bot

By kairen

•Updated almost 9 years ago

Make a GitHub bot to handle work flow.

Image
0

1.2K

kairen/github-bot repository overview

Docker Build Statu Build Status Coverage Status

⁠Webhook handler for KaiRen's Bot

Make GitLab CI work with a GitHub repository written in Go. The bot watch webhook event to handle something.

snapshot

⁠Build

To build bot into a container via Docker:

$ docker build -t kairen/github-bot:0.1.0 .

⁠Usage

Run bot on Docker as below command:

$ docker run --rm -ti -e [envs] kairen/github-bot:0.1.0 [options]
$ docker run --rm -ti kairen/github-bot:0.1.0
Usage: github-bot [OPTION]...
github-bot watch your GitHub and GitLab event to handle anything!!

Options:
  -github-token string
    	GitHub access token.
  -gitlab-endpoint string
    	GitLab API Endpoint. (default "https://gitlab.com")
  -gitlab-token string
    	GitLab access token.
  -path string
    	Webhook uri path. (default "/webhooks")
  -port int
    	Webhook server port. (default 8080)
  -secret string
    	Webhook server secret. (default "6324d8bf")

[ERROR] Missing required opts

Tag summary

Content type

Image

Digest

Size

13.1 MB

Last updated

almost 9 years ago

docker pull kairen/github-bot