1
0
Fork 0

And thus, I screwed up

master
Ambrose Chua 2018-03-26 22:00:02 +08:00
parent 0a5cdd667e
commit b076942e0e
1 changed files with 7 additions and 7 deletions

View File

@ -1,13 +1,17 @@
workspace:
base: /go
matrix: matrix:
GO_VERSION: GO_VERSION:
- "1.10" - "1.10"
GOOS: GOOS:
- linux - linux
# - windows - windows
# - darwin - darwin
GOARCH: GOARCH:
- amd64 - amd64
# - arm64 - arm64
pipeline: pipeline:
build: build:
image: golang:${GO_VERSION} image: golang:${GO_VERSION}
@ -15,10 +19,6 @@ pipeline:
commands: commands:
- export FILENAME=${DRONE_REPO_NAME}-${GOOS}-${GOARCH} - export FILENAME=${DRONE_REPO_NAME}-${GOOS}-${GOARCH}
- if [[ "$GOOS" == "windows" ]]; then export FILENAME=$FILENAME.exe; fi - if [[ "$GOOS" == "windows" ]]; then export FILENAME=$FILENAME.exe; fi
- go version
- ls -lah
- ls vendor/
- env
- go build -ldflags "-s -w" -o dist/$FILENAME - go build -ldflags "-s -w" -o dist/$FILENAME
release: release:
image: plugins/github-release image: plugins/github-release