Added auto-build on tagging to drone
the build was successful Details

This commit is contained in:
konrad 2018-01-10 10:16:12 +01:00 committed by kolaente
parent ece8699693
commit f904aa49d7
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 24 additions and 10 deletions

View File

@ -34,13 +34,27 @@ pipeline:
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 ]
# Build a release when tagging
static:
image: karalabe/xgo-latest:latest
pull: true
environment:
TAGS: bindata sqlite
GOPATH: /srv/app
commands:
- make release
when:
event: [ tag ]
release:
image: plugins/s3:1
pull: true
secrets: [ aws_access_key_id, aws_secret_access_key ]
bucket: library-release
endpoint: https://storage.kolaente.de
path_style: true
strip_prefix: dist/release/
source: dist/release/*
target: /library/${DRONE_TAG##v}
when:
event: [ tag ]