2017-11-07 15:23:30 +00:00
|
|
|
workspace:
|
|
|
|
base: /srv/app
|
2017-11-07 15:37:43 +00:00
|
|
|
path: src/git.mowie.cc/konrad/Library
|
2017-11-07 15:23:30 +00:00
|
|
|
|
|
|
|
pipeline:
|
|
|
|
clone:
|
|
|
|
image: plugins/git
|
|
|
|
depth: 50
|
|
|
|
tags: true
|
|
|
|
|
2017-11-08 20:51:53 +00:00
|
|
|
build-backend:
|
2017-11-07 15:23:30 +00:00
|
|
|
image: webhippie/golang:edge
|
|
|
|
pull: true
|
|
|
|
environment:
|
|
|
|
TAGS: bindata sqlite
|
|
|
|
GOPATH: /srv/app
|
|
|
|
commands:
|
2017-11-07 15:29:41 +00:00
|
|
|
- make clean
|
|
|
|
- make lint
|
2017-11-07 15:23:30 +00:00
|
|
|
- make fmt-check
|
|
|
|
- make build
|
|
|
|
when:
|
|
|
|
event: [ push, tag, pull_request ]
|
|
|
|
|
2017-11-08 20:51:53 +00:00
|
|
|
build-frontend:
|
2017-11-08 20:54:31 +00:00
|
|
|
image: webhippie/nodejs:latest
|
2017-11-08 20:51:53 +00:00
|
|
|
pull: true
|
|
|
|
commands:
|
|
|
|
- npm install
|
|
|
|
- npm build
|
|
|
|
when:
|
|
|
|
event: [ push, tag, pull_request ]
|
|
|
|
|
2017-11-07 15:23:30 +00:00
|
|
|
# static:
|
|
|
|
# image: karalabe/xgo-latest:latest
|
|
|
|
# pull: true
|
|
|
|
# environment:
|
|
|
|
# TAGS: bindata sqlite
|
|
|
|
# GOPATH: /srv/app
|
|
|
|
# commands:
|
|
|
|
# - make release
|
|
|
|
# when:
|
|
|
|
# event: [ push, tag ]
|