Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atpons/drone-badge-server
Generate Drone.io Step Badge from Webhook
https://github.com/atpons/drone-badge-server
Last synced: about 1 month 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-13T18:31:51.000Z (over 5 years ago)
- Last Synced: 2024-11-30T20:06:42.961Z (about 1 month ago)
- Language: Go
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- 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"}, // ステージ番号
},
}
```