3
3

More than 5 years have passed since last update.

Dokku にデプロイしたら ikachan で通知するプラグインを作った

Posted at

主にぼくが得をする感じのプラグインを書いた。めっちゃ便利で感動している。

READMEあるけど日本語で説明すると、

インストール

$ git clone https://github.com/udzura/dokku-ikachan-plugin.git ikachan

plugins-install は要らない。

設定

最初に /home/dokku/dokkurc に何かを書く必要がある。

export IKACHAN_HOST=http://dokku001.example.com:8080
export IKACHAN_CHANNEL='#ikachan'
# 複数チャンネルに通知する
export IKACHAN_CHANNEL='#ikachan,#development,#test'

使い方

ふつうに git push dokku master すると経過を通知してくれて便利。

00:00 <ikachan> ✈︎ Image build for minne-chan started on dokku001.example.com
00:01 <ikachan> ✔︎ Image build for minne-chan finished on dokku001.example.com
...

通知のタイミングは、デフォルトで「pre-build,post-build,pre-deploy,post-deploy」なんだけど、$IKACHAN_HOOK_ENABLEDという項目で設定できる。

export IKACHAN_HOOK_ENABLED="pre-build,post-deploy"

困ってること

build-failed みたいなフックポイントがないので、失敗しても通知されない...


ということで有効に使ってください。

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3