https://github.com/atpons/drone-badge-server
Generate Drone.io Step Badge from Webhook
https://github.com/atpons/drone-badge-server
Last synced: 4 months ago
JSON representation
Generate Drone.io Step Badge from Webhook
- Host: GitHub
- URL: https://github.com/atpons/drone-badge-server
- Owner: atpons
- Created: 2019-05-11T15:14:14.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-13T18:31:51.000Z (about 6 years ago)
- Last Synced: 2025-03-27T00:55:18.466Z (4 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Drone.io Badge Server
===Droneの各ステージにおける結果に基づいてバッジを返すサーバです.
## 注意
- Droneが複数台のときのことを考慮していません.
- 取得した結果をインメモリDBに保存しています.## API
### POST /generate
```json
{
"build_number": 12,
"repo_namespace": "atpons",
"repo_name": "drone-badge-server"
}
```### GET //
レポジトリIDとステージ番号に対応したMapを書いてください.
```go
var BadgeRoute = badge.Repo{
100: { // レポジトリID
1: {"build_pass.png", "build_fail.png"}, // ステージ番号
2: {"webhook_pass.png", "webhook_fail.png"}, // ステージ番号
},
}
```