diff options
author | Thomas Boerger <thomas@webhippie.de> | 2017-03-07 14:49:24 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-03-07 21:49:24 +0800 |
commit | 7ed00b6e8d571ab8efc99aa69d545cce609dd900 (patch) | |
tree | f9cb28d8c60eb293bfac996d7963f2a8c754bf31 /.drone.yml | |
parent | 288226e13ca86c033d8417238dd7e1e1deb7173c (diff) | |
download | gitea-7ed00b6e8d571ab8efc99aa69d545cce609dd900.tar.gz gitea-7ed00b6e8d571ab8efc99aa69d545cce609dd900.zip |
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>
Diffstat (limited to '.drone.yml')
-rw-r--r-- | .drone.yml | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/.drone.yml b/.drone.yml index e6ec2b5733..70b59828ff 100644 --- a/.drone.yml +++ b/.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 |