Library/.drone.yml

46 lines
861 B
YAML
Raw Normal View History

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