diff --git a/.drone.sh b/.drone.sh index 73556e3..7fcfe66 100755 --- a/.drone.sh +++ b/.drone.sh @@ -1,5 +1,5 @@ #!/bin/sh VERSION=${DRONE_BUILD_NUMBER} -CGO_ENABLED=0 GOOS=linux go build -a -gcflags '-e' -ldflags "-X main.version=$VERSION -s -w" -o db db.go -CGO_ENABLED=0 GOOS=linux go build -a -gcflags '-e' -ldflags "-X main.version=$VERSION -s -w" -o srv srv.go +CGO_ENABLED=0 GOOS=linux go build -v -a -gcflags '-e' -ldflags "-X main.version=$VERSION -s -w" -o db db.go +CGO_ENABLED=0 GOOS=linux go build -v -a -gcflags '-e' -ldflags "-X main.version=$VERSION -s -w" -o srv srv.go diff --git a/.drone.yml b/.drone.yml index 94d61aa..dc8daff 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,7 +18,7 @@ pipeline: image: golang:alpine commands: sh .drone.sh when: - event: [ push, pull_request ] + event: pull_request publish_srv: image: plugins/docker