Git Product home page Git Product logo

build-bot's Introduction

Build Bot

A Discord bot which announces successful Azure DevOps continous integration builds in chat.

Example image

Installation

Build Bot is deployed using Docker:

docker run jessehallam/build-bot:latest

Application Configuration

The bot is configured using a yaml file on the file system:

azure:
  token: aaaaaaaaa
  url: https://dev.azure.com/jessehallam
bot:
  enable: true
  channel_id: '120000000000000'
  token: NTA0aaaaaaaaa
webhook:
  auth_token: aaaaaaaaa
  enable: true
  listen_port: 7000

azure.token An Azure DevOps personal access token. It's used for performing REST calls against the Azure DevOps API.
azure.url The base URL used to access the Azure DevOps REST API.

bot.enable When true, the bot will announce successful builds.
bot.channel_id The Discord channel ID to announce in.
bot.token The Discord token used for logging in as the bot.

webhook.auth_token An arbitrary string to authenticate in the X-API-Token header of webhook callbacks.
webhook.enable When true, the bot will accept webhook callbacks from Azure DevOps.
webhook.listen_port The HTTP port to listen on.

Docker Configuration

Ports: The application will listen to the port specified by webhook.listen_port. Expose this port and map it freely.
Environment: The application will look for the configuration yaml file at $DOCKER_CONFIG_FILE.

Using Docker Compose

The following docker-compose template can be used to start a Build Bot instance:

version: '2'
services:
  bot:
    image: jessehallam/build-bot:latest
    restart: 'always'
    ports:
      - '20200:80'
    environment:
      - DOCKER_CONFIG_FILE=/app/config.yml
    volumes:
      - ./config.yml:/app/config.yml:ro

build-bot's People

Contributors

jessehallam avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.