1
0
Fork 0
forward/.drone.yml

25 lines
444 B
YAML
Raw Normal View History

2018-03-26 20:23:28 +08:00
matrix:
GO_VERSION:
- "1.10"
GOOS:
2018-03-26 21:00:11 +08:00
- linux
- windows
- darwin
2018-03-26 21:19:35 +08:00
GOARCH:
- amd64
- arm64
2018-03-26 20:23:28 +08:00
pipeline:
build:
2018-03-26 20:33:38 +08:00
image: golang:${GO_VERSION}-alpine
2018-03-26 21:25:44 +08:00
pull: true
2018-03-26 20:23:28 +08:00
commands:
2018-03-26 21:00:11 +08:00
- export FILENAME=${DRONE_REPO_NAME}-${GOOS}-${GOARCH}
- go build -ldflags "-s -w" -o dist/$FILENAME
2018-03-26 20:23:28 +08:00
release:
image: plugins/github-release
secrets: [ github_token ]
2018-03-26 21:00:11 +08:00
files:
- dist/*
2018-03-26 20:23:28 +08:00
when:
event: tag