Split the binary build (#985)
As we can not compile darwin binaries with static flags I have split the build process into different make tasks. Now we get static linked binaries especially for linux so that it also can run on older versions of CenOS and so on. Signed-off-by: Thomas Boerger <thomas@webhippie.de>
This commit is contained in:
parent
288226e13c
commit
7ed00b6e8d
3 changed files with 43 additions and 15 deletions
27
.drone.yml
27
.drone.yml
|
@ -11,8 +11,7 @@ pipeline:
|
|||
image: webhippie/golang:edge
|
||||
pull: true
|
||||
environment:
|
||||
CGO_ENABLED: 1
|
||||
TAGS: sqlite bindata
|
||||
TAGS: bindata sqlite
|
||||
GOPATH: /srv/app
|
||||
commands:
|
||||
- apk -U add openssh-client
|
||||
|
@ -29,8 +28,7 @@ pipeline:
|
|||
image: webhippie/golang:edge
|
||||
pull: true
|
||||
environment:
|
||||
CGO_ENABLED: 1
|
||||
TAGS: sqlite bindata
|
||||
TAGS: bindata
|
||||
GOPATH: /srv/app
|
||||
commands:
|
||||
- make test-mysql
|
||||
|
@ -41,20 +39,31 @@ pipeline:
|
|||
image: webhippie/golang:edge
|
||||
pull: true
|
||||
environment:
|
||||
CGO_ENABLED: 1
|
||||
TAGS: sqlite bindata
|
||||
TAGS: bindata
|
||||
GOPATH: /srv/app
|
||||
commands:
|
||||
- make test-pgsql
|
||||
when:
|
||||
event: [ push, tag, pull_request ]
|
||||
|
||||
updater:
|
||||
static:
|
||||
image: karalabe/xgo-latest:latest
|
||||
pull: true
|
||||
environment:
|
||||
CGO_ENABLED: 1
|
||||
TAGS: sqlite bindata
|
||||
TAGS: bindata
|
||||
FLAVOR: static
|
||||
GOPATH: /srv/app
|
||||
commands:
|
||||
- make release
|
||||
when:
|
||||
event: [ push, tag, pull_request ]
|
||||
|
||||
sqlite:
|
||||
image: karalabe/xgo-latest:latest
|
||||
pull: true
|
||||
environment:
|
||||
TAGS: bindata sqlite
|
||||
FLAVOR: sqlite
|
||||
GOPATH: /srv/app
|
||||
commands:
|
||||
- make release
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue