All Projects → atjason → deploy

atjason / deploy

Licence: other
Used to deploy project, includes webhooks.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to deploy

PSDiscord
Simple PowerShell module allowing to send messages to Discord Channel over webhooks
Stars: ✭ 34 (+126.67%)
Mutual labels:  webhook
universal-react-starter-kit
Universal React Starter Kit is an universal web application framework using koa, react, redux and webpack.
Stars: ✭ 13 (-13.33%)
Mutual labels:  koa
tie
🧶A Node.js Framework based on TypeScript and Express.
Stars: ✭ 30 (+100%)
Mutual labels:  koa
aotoo-hub
aotoo-hub是一套通用型前端脚手架,无技术栈依赖,聚焦于多人协作及工程化。帮助开发者快速产出项目。支持react/vue/小程序/node
Stars: ✭ 74 (+393.33%)
Mutual labels:  koa
github-release-notifier
Automatize tasks when a specific package got a new release - Github Release Notifier
Stars: ✭ 21 (+40%)
Mutual labels:  webhook
web-onefx-boilerplate
Full-stack React Framework for building web and backend
Stars: ✭ 34 (+126.67%)
Mutual labels:  koa
discord
GitHub webhook that analyzes pull requests and adds comments about incompatible CSS
Stars: ✭ 29 (+93.33%)
Mutual labels:  webhook
Temps
λ A selfhostable serverless function runtime. Inspired by zeit now.
Stars: ✭ 15 (+0%)
Mutual labels:  webhook
tsed
📐 Ts.ED is a Node.js and TypeScript framework on top of Express to write your application with TypeScript (or ES6). It provides a lot of decorators and guideline to make your code more readable and less error-prone.
Stars: ✭ 2,350 (+15566.67%)
Mutual labels:  koa
k8s-mutate-webhook
A playground to build a very crude k8s mutating webhook in Go
Stars: ✭ 55 (+266.67%)
Mutual labels:  webhook
koa-xml-body
koa middleware to parse xml request body
Stars: ✭ 36 (+140%)
Mutual labels:  koa
snitch
Keep updated about all deploys on Tsuru
Stars: ✭ 16 (+6.67%)
Mutual labels:  webhook
koa-session-mongoose
Mongoose store for Koa sessions
Stars: ✭ 29 (+93.33%)
Mutual labels:  koa
gitdub
📤 A github WebHook that emails detailed diffs of your commits.
Stars: ✭ 25 (+66.67%)
Mutual labels:  webhook
disgo
A modular Golang Discord API Wrapper
Stars: ✭ 113 (+653.33%)
Mutual labels:  webhook
graphql-ufc-api
GraphQL server for UFC's public API
Stars: ✭ 26 (+73.33%)
Mutual labels:  koa
rebasebot
A GitHub bot that rebases your branches
Stars: ✭ 43 (+186.67%)
Mutual labels:  webhook
kube-watch
Simple tool to get webhooks on Kubernetes cluster events
Stars: ✭ 21 (+40%)
Mutual labels:  webhook
koahub-cli
KoaHub CLI -- KoaHub.js的开发工具,自动babel编译 ES6/7(Generator Function, Class, Async & Await)并且文件修改后自动重启。
Stars: ✭ 16 (+6.67%)
Mutual labels:  koa
nodejs-koa-blog
基于 Node.js Koa2 实战开发的一套完整的博客项目网站
Stars: ✭ 1,611 (+10640%)
Mutual labels:  koa

中文版说明

What's This?

Web service responses to GitHub Webhook.

Preconditions

This is not a Hello Word teaching example, but an actual project that I am using myself. Suppose you already know the following techniques or meet their conditions:

  • Have a server of your own
  • Could configure the domain name
  • Could configure nginx or other web server to forward the web service to the node service
  • Could create shell script
  • Know about node, koa
  • Know about Webhook
  • Know about SMTP

Features

  • After run node lib/index.js, a service that responds to GitHub Webhook is provided on port 3030.
  • Internally call the actual working shell script (you need to write it yourself) via exec
  • Send email for the result of script.

Configuration

Both are located in the config directory, refer to *_demo.json, add a version without _demo

config.json

You can create a corresponding configuration for each warehouse and branch:

{
  "webhook-test_master": { // RepositoryName_BranchName
    "secret": "GitHub_Webhook_secret",
    "cwd": "/home/jason/testapi/", // script execution directory
    "command": "/bin/bash ./deploy.sh", // Really work shell script
    "env": { // some environment variables
      "DEBUG": "s:*"
    }
  }
}

security.json

Currently, the SMTP configuration information is mainly stored for sending notification emails:

{
  "mailConfig": {
    "host": "email-smtp.us-west-2.amazonaws.com",
    "port": "465",
    "user": "user123",
    "password": "password123",
    "from": "[email protected]",
    "to": "[email protected]"
  }
}

Tips

For GitHub Webhook, remember to generate a secret and select the json format.

For shell scripts warn/error, which is not important, can be transferred from stderr to stdout via 2>&1.

For the mail service, I'm using Amazon SES. Everything is going well with 200 free mail quotas per day.

If you have a problem, ask Google and yourself; It works fine in my side.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].