-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
37 lines (33 loc) · 923 Bytes
/
.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
kind: pipeline
name: default
steps:
- name: build
image: golang:1.17-alpine
environment:
CGO_ENABLED: 0
GOPROXY: https://proxy.golang.org
commands:
- apk --no-cache add syslog-ng bash
- syslogd
- ln -sf /var/run/log /var/run/syslog
- go test -mod=vendor .
- GOARCH=386 go build -mod=vendor -o cronguard-linux-386 .
- GOARCH=amd64 go build -mod=vendor -o cronguard-linux-amd64 .
- GOARCH=arm go build -mod=vendor -o cronguard-linux-arm .
- GOARCH=arm64 go build -mod=vendor -o cronguard-linux-arm64 .
- name: release
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files:
- cronguard-linux-386
- cronguard-linux-amd64
- cronguard-linux-arm
- cronguard-linux-arm64
checksum:
- md5
- sha1
- sha256
when:
event: tag