-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.drone.yml
More file actions
43 lines (40 loc) · 786 Bytes
/
Copy path.drone.yml
File metadata and controls
43 lines (40 loc) · 786 Bytes
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
---
kind: pipeline
name: default
platform:
os: linux
arch: amd64
workspace:
base: /src
path: trieres
steps:
- name: test
image: golang:1.13
commands:
- mkdir ~/.ssh
- echo "test" > ~/.ssh/id_rsa
- mkdir -p /go/bin
- go mod download
- make test
- name: build
image: golang:1.13
commands:
- GO111MODULE=off go get github.com/mitchellh/gox
- make build
environment:
BUILD_ARCHS: "linux/amd64 linux/arm64 linux/arm darwin/amd64 windows/amd64"
when:
event: tag
- name: publish
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files:
- output/*
draft: true
checksum:
- md5
- sha256
when:
event: tag