Made the build config work with drone 1
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
0d8e956e44
commit
e1c6319b6c
54
.drone.yml
54
.drone.yml
|
@ -1,31 +1,51 @@
|
|||
kind: pipeline
|
||||
name: default
|
||||
|
||||
workspace:
|
||||
base: /srv/app
|
||||
path: src/git.mowie.cc/konrad/Konfi-Castle-Kasino
|
||||
base: /go
|
||||
path: src/git.kolaente.de/konrad/Konfi-Castle-Kasino
|
||||
|
||||
pipeline:
|
||||
clone:
|
||||
image: plugins/git
|
||||
depth: 50
|
||||
tags: true
|
||||
steps:
|
||||
# Needed to get the versions right as they depend on tags
|
||||
- name: fetch-tags
|
||||
image: docker:git
|
||||
commands:
|
||||
- git fetch --tags
|
||||
|
||||
build:
|
||||
image: webhippie/golang:edge
|
||||
- name: build
|
||||
image: vikunja/golang-build:latest
|
||||
pull: true
|
||||
environment:
|
||||
TAGS: bindata sqlite
|
||||
GOPATH: /srv/app
|
||||
commands:
|
||||
- make build
|
||||
when:
|
||||
event: [ push, tag, pull_request ]
|
||||
depends_on: [ fetch-tags ]
|
||||
|
||||
static:
|
||||
image: karalabe/xgo-latest:latest
|
||||
- name: static
|
||||
image: techknowlogick/xgo:latest
|
||||
pull: true
|
||||
environment:
|
||||
TAGS: bindata sqlite
|
||||
# This path does not exist. However, when we set the gopath to /go, the build fails. Not sure why.
|
||||
# Leaving this here until we know how to resolve this properly.
|
||||
GOPATH: /srv/app
|
||||
commands:
|
||||
- export PATH=$PATH:$GOPATH/bin
|
||||
- make release
|
||||
when:
|
||||
event: [ push, tag ]
|
||||
depends_on: [ fetch-tags ]
|
||||
|
||||
# Push the releases to our pseudo-s3-bucket
|
||||
- name: release
|
||||
image: plugins/s3:1
|
||||
pull: true
|
||||
settings:
|
||||
bucket: konfi-castle-casino
|
||||
access_key:
|
||||
from_secret: aws_access_key_id
|
||||
secret_key:
|
||||
from_secret: aws_secret_access_key
|
||||
endpoint: https://storage.kolaente.de
|
||||
path_style: true
|
||||
strip_prefix: dist/binaries/
|
||||
source: dist/binaries/*
|
||||
target: /master/
|
||||
depends_on: [ static ]
|
Loading…
Reference in New Issue