LoginSignup
5
5

More than 5 years have passed since last update.

Drone をインストールしてみる

Posted at

インストール

https://github.com/drone/drone に従ってインストールします

$ curl -LO  downloads.drone.io/master/drone.deb
$ sudo dpkg -i drone.deb

OAuth application への登録

GitHub の OAuth application に登録します

設定

設定ファイルは /etc/drone/drone.toml です

GitHub の OAuth application に登録した際に表示された Client IDclient`に、Client Secretsecret`` に指定します

drone.toml
[github]
client=""
secret=""

起動

下記で再起動させます

$ sudo service drone restart

Login

http://example.com/login にアクセスします

スクリーンショット 2014-11-27 21.56.51.png

GitHub を押下して、認可処理を進めると、dashboard にリダイレクトされます

スクリーンショット 2014-11-27 21.58.03.png

Activate

BROWSE ALL を押下し、テスト対象のリポジトリを選択して activate します

activate すると、選択したリポジトリの GitHub Webhooks が設定され、リポジトリに push すると GitHub から POST リクエストが送信されるようになります

git push

GitHub に push すると .drone.yml の内容に従って script が実行されます

スクリーンショット 2014-11-27 23.56.14.png

5
5
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
5
5