Fix Drone CI config
This commit is contained in:
rodič
9df3b1af49
revize
ecfc0cc61e
38
.drone.yml
38
.drone.yml
|
@ -1,19 +1,35 @@
|
|||
---
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: golang:latest
|
||||
- name: build-and-test
|
||||
image: r.mills.io/prologic/golang-alpine:latest
|
||||
commands:
|
||||
- make build
|
||||
- make test
|
||||
|
||||
- name: coverage
|
||||
image: plugins/codecov
|
||||
- name: build-image-push
|
||||
image: plugins/kaniko
|
||||
settings:
|
||||
token:
|
||||
from_secret: codecov-token
|
||||
repo: prologic/msgbus
|
||||
tags: latest
|
||||
build_args:
|
||||
- VERSION=latest
|
||||
- COMMIT=${DRONE_COMMIT_SHA:0:8}
|
||||
username:
|
||||
from_secret: dockerhub_username
|
||||
password:
|
||||
from_secret: dockerhub_password
|
||||
depends_on:
|
||||
- build-and-test
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- push
|
||||
|
||||
- name: notify
|
||||
- name: notify-irc
|
||||
image: plugins/webhook
|
||||
settings:
|
||||
urls:
|
||||
|
@ -22,3 +38,11 @@ steps:
|
|||
status:
|
||||
- success
|
||||
- failure
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
event:
|
||||
- tag
|
||||
- push
|
||||
- pull_request
|
||||
|
|
10
README.md
10
README.md
|
@ -1,11 +1,7 @@
|
|||
# msgbus
|
||||
|
||||
[![Build Status](https://cloud.drone.io/api/badges/prologic/msgbus/status.svg)](https://cloud.drone.io/prologic/msgbus)
|
||||
[![CodeCov](https://codecov.io/gh/prologic/msgbus/branch/master/graph/badge.svg)](https://codecov.io/gh/prologic/msgbus)
|
||||
[![Go Report Card](https://goreportcard.com/badge/prologic/msgbus)](https://goreportcard.com/report/prologic/msgbus)
|
||||
[![GoDoc](https://godoc.org/git.mills.io/prologic/msgbus?status.svg)](https://godoc.org/git.mills.io/prologic/msgbus)
|
||||
[![GitHub license](https://img.shields.io/github/license/prologic/msgbus.svg)](https://git.mills.io/prologic/msgbus)
|
||||
[![Sourcegraph](https://sourcegraph.com/git.mills.io/prologic/msgbus/-/badge.svg)](https://sourcegraph.com/git.mills.io/prologic/msgbus?badge)
|
||||
[![Build Status](https://ci.mills.io/api/badges/prologic/msgbus/status.svg)](https://ci.mills.io/prologic/msgbus)
|
||||
[![Go Reference](https://pkg.go.dev/git.mills.io/prologic/msgbus?status.svg)](https://pkg.go.dev/git.mills.io/prologic/msgbus)
|
||||
|
||||
A real-time message bus server and library written in Go.
|
||||
|
||||
|
@ -20,7 +16,7 @@ A real-time message bus server and library written in Go.
|
|||
## Install
|
||||
|
||||
```#!bash
|
||||
$ go install git.mills.io/prologic/msgbus/...
|
||||
$ go install git.mills.io/prologic/msgbus/cmd/...
|
||||
```
|
||||
|
||||
## Use Cases
|
||||
|
|
Načítá se…
Odkázat v novém úkolu