Library/.drone.yml

44 lines
808 B
YAML

workspace:
base: /srv/app
path: src/git.mowie.cc/konrad/Library
pipeline:
clone:
image: plugins/git
depth: 50
tags: true
build-backend:
image: webhippie/golang:edge
pull: true
environment:
TAGS: bindata sqlite
GOPATH: /srv/app
commands:
- make clean
- make lint
- make fmt-check
- make build
when:
event: [ push, tag, pull_request ]
build-frontend:
image: node:6.12.0
pull: true
commands:
- cd assets/
- npm install
- npm build
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 ]