Skip to content

zynaxsoft/smol_webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smol webhook (crates.io)

A small rust project that is based on the webserver project in the rust book.

This script will listen to the github webhook for a push event. It will check branch and it will execute a script placed near the executable.

Usage

  1. Install Rust
  2. cargo install smol_webhook
  3. Configure the server with the environment variables listsed below.
  4. Run it with /path/to/cargo_binary/smol_webhook e.g. .cargo/bin/smol_webhook

Configuration

This application could be configured by using environment variables.

  • SMOL_WEBHOOK_IP ip_addr - IPv4 to listen. default=127.0.0.1
  • SMOL_WEBHOOK_PORT port_number - port to listen. default=7878
  • SMOL_WEBHOOK_BRANCH branch_name - a branch name that this webhook will watch on. default=master
  • SMOL_WEBHOOK_SCRIPT script_path - path of the executable script. default=./test.sh
  • SMOL_WEBHOOK_KEY secret_key - secret key to check in the webhook event. default=""(empty string)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages