Skip to content
/ tunk Public

Elixir application for forwarding Google Cloud Platform build statuses to Github and Slack.

Notifications You must be signed in to change notification settings

ironbay/tunk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tunk

An Elixir app for forwarding Google Cloud Platform build statuses to Slack and Github.

Installation

If available in Hex, the package can be installed by adding tunk to your list of dependencies in mix.exs:

def deps do
  [
    {:tunk, "~> 0.1.0"}
  ]
end

The web server runs on port 4000, which can be swapped out in the Dockerfile.

Both integrations are options. In lib/tunk/config, enable integrations by setting the enabled field to true:

# lib/tunk/config.ex

slack: %{
	token: nil, 
	channel: nil, 
	enabled: true	
}

There are some env variables that need to get set properly:

name description
TUNK_GITHUB_AUTH Set up a access_token and enable commit statuses
TUNK_GITHUB_USER The github user who owns the given repo. For example if the repo was https://github.com/ironbay/tunk, this would be the string "ironbay"
TUNK_SLACK_CHANNEL The name of the slack channel to post statuses, in the format #mychannel.
TUNK_SLACK_TOKEN Set up a new bot user integration to get a user token.

Tunk uses the Fig library for handling configuration.

You can add your own integrations easily. Add them in the same format as slack and github in lib/tunk/config.ex. Then name your module accoding to the config (i.e. if you add new to your config, create a Tunk.New module inside of lib. To trigger the new module on status updates, update enabled to check for the update config (and don't forget to set enabled:true in the new config.

About

Elixir application for forwarding Google Cloud Platform build statuses to Github and Slack.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published