-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
32 lines (30 loc) · 899 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
kind: pipeline
type: docker
name: default
steps:
- name: build
image: golang:1.13-alpine
commands:
- mkdir build
- env GOOS=linux CGO_ENABLED=0 GOARCH=arm GOARM=5 GO111MODULE=on go build -o build/bearer-auth-arm .
- env GOOS=linux CGO_ENABLED=0 GOARCH=arm GOARM=6 GO111MODULE=on go build -o build/bearer-auth-arm .
- env GOOS=linux CGO_ENABLED=0 GOARCH=arm GOARM=7 GO111MODULE=on go build -o build/bearer-auth-arm .
- env GOOS=linux CGO_ENABLED=0 GOARCH=arm64 GO111MODULE=on go build -o build/bearer-auth-arm64 .
- env GOOS=linux CGO_ENABLED=0 GOARCH=amd64 GO111MODULE=on go build -o build/bearer-auth-amd64 .
- name: publish
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files: build/*
title: Release ${DRONE_TAG}
checksum:
- md5
- sha1
- sha256
- sha512
- adler32
- crc32
when:
event:
- tag