1
0
Fork 0

Update .drone.yml

master
Ambrose Chua 2018-05-06 14:21:49 +08:00 committed by GitHub
parent 2885b939fa
commit 1b0ff27214
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,8 @@ pipeline:
build: build:
image: golang:${GO_VERSION} image: golang:${GO_VERSION}
pull: true pull: true
environment:
- CGO_ENABLED=0
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