-
Notifications
You must be signed in to change notification settings - Fork 19
/
.drone.yml
40 lines (36 loc) · 1 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
kind: pipeline
type: docker
name: default
steps:
- name: test
image: golang:1.19
commands:
- go test -coverprofile=cover.out ./...
- go tool cover -func=cover.out
- name: build
image: golang:1.19
commands:
- GOOS=linux GOARCH=amd64 go build -o release/plugin-linux-amd64
- GOOS=linux GOARCH=arm64 go build -o release/plugin-linux-arm64
- GOOS=darwin GOARCH=amd64 go build -o release/plugin-darwin-amd64
- GOOS=darwin GOARCH=arm64 go build -o release/plugin-darwin-arm64
- GOOS=windows GOARCH=amd64 go build -o release/plugin-windows-amd64.exe
# uncomment when the `github_token` secret has been added
#
#- name: release
# image: plugins/github-release
# settings:
# files:
# - release/plugin-linux-amd64
# - release/plugin-linux-arm64
# - release/plugin-darwin-amd64
# - release/plugin-darwin-arm64
# - release/plugin-windows-amd64.exe
# api_key:
# from_secret: github_token
# when:
# ref:
# - refs/tags/*
trigger:
branch:
- master