-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
58 lines (52 loc) · 1.23 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
###
kind: pipeline
type: docker
name: linux-amd64
platform:
arch: amd64
os: linux
steps:
- name: unit test
image: golang
environment:
coveralls_token:
from_secret: coveralls_token
DEEPSOURCE_DSN:
from_secret: deepsource_dsn
commands:
- go install github.com/mattn/goveralls@latest
- go test ./... -v -covermode=count -coverprofile=coverage.out
- $GOPATH/bin/goveralls -coverprofile=coverage.out -service=drone-ci -repotoken $${coveralls_token}
- curl https://deepsource.io/cli | sh
- ./bin/deepsource report --analyzer test-coverage --key go --value-file ./coverage.out
- name: publish to Dockerhub image
image: plugins/docker
settings:
auto_tag: true
repo: thomaslacaze/wakapi-stats
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event:
- push
- tag
branch:
- master
- main
- name: publish readme to Dockerhub
image: thomaslacaze/dockerhub-description:2.4.1
pull: always
settings:
repository: thomaslacaze/wakapi-stats
username:
from_secret: docker_username
password:
from_secret: docker_password
readme: /drone/src/README.md
when:
branch:
- master
- main
###