-
Notifications
You must be signed in to change notification settings - Fork 5
/
.drone.yml
95 lines (88 loc) · 1.36 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
kind: pipeline
name: Lint
platform:
os: linux
arch: amd64
trigger:
event:
- push
- pull_request
- tag
ref:
- refs/heads/main
- refs/pull/*/head
- refs/tags/**
steps:
- name: lint
image: golangci/golangci-lint:v1.51.2
commands:
- apt-get update -y && apt-get install -y libsystemd-dev
- make DOCKER_OPTS="" lint
---
kind: pipeline
type: docker
name: Test
platform:
os: linux
arch: amd64
trigger:
event:
- push
- pull_request
- tag
ref:
- refs/heads/main
- refs/pull/*/head
- refs/tags/**
steps:
- name: test
image: golang:1.18-bullseye
commands:
- make test
depends_on:
- Lint
---
kind: pipeline
type: docker
name: Release
platform:
os: linux
arch: amd64
trigger:
ref:
- refs/tags/v*
- refs/tags/v*-*
steps:
- name: create-release
image: golang:1.18-bullseye
environment:
GITHUB_TOKEN:
from_secret: GITHUB_TOKEN
commands:
- make release
---
kind: pipeline
type: docker
name: Build
platform:
os: linux
arch: amd64
trigger:
event:
- push
- pull_request
- tag
ref:
- refs/heads/main
- refs/pull/*/head
- refs/tags/**
steps:
- name: build
image: golang:1.18-bullseye
commands:
- make build
---
kind: signature
hmac: 7a8c0b2d29d84188d192a2687945f653587e0ea322ea5d8008f022058b49c9ed
...