parent
7e4927997a
commit
5c2e3223bb
2 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
VERSION=${DRONE_BUILD_NUMBER}
|
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 -v -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 srv srv.go
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ pipeline:
|
||||||
image: golang:alpine
|
image: golang:alpine
|
||||||
commands: sh .drone.sh
|
commands: sh .drone.sh
|
||||||
when:
|
when:
|
||||||
event: [ push, pull_request ]
|
event: pull_request
|
||||||
|
|
||||||
publish_srv:
|
publish_srv:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue