pr2 #2
2 changed files with 10 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 -v -a -gcflags '-e' -ldflags "-X main.version=$VERSION -s -w" -o db db.go
|
CGO_ENABLED=0 GOOS=linux go build -v -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
|
CGO_ENABLED=0 GOOS=linux go build -v -gcflags '-e' -ldflags "-X main.version=$VERSION -s -w" -o srv srv.go
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,13 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
event: pull_request
|
event: pull_request
|
||||||
|
|
||||||
|
build_publish:
|
||||||
|
image: golang:alpine
|
||||||
|
commands: sh .drone.sh
|
||||||
|
when:
|
||||||
|
branch: master
|
||||||
|
event: push
|
||||||
|
|
||||||
publish_srv:
|
publish_srv:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
repo: kube-registry.kube-system.svc.cluster.local:5000/ciapp/srv
|
repo: kube-registry.kube-system.svc.cluster.local:5000/ciapp/srv
|
||||||
|
|
@ -42,7 +49,7 @@ pipeline:
|
||||||
branch: master
|
branch: master
|
||||||
event: push
|
event: push
|
||||||
|
|
||||||
build:
|
build_release:
|
||||||
image: golang:alpine
|
image: golang:alpine
|
||||||
commands: sh .drone.sh
|
commands: sh .drone.sh
|
||||||
when:
|
when:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue