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:
|
workspace:
|
||||||
base: /srv/app
|
base: /go
|
||||||
path: src/git.mowie.cc/konrad/Konfi-Castle-Kasino
|
path: src/git.kolaente.de/konrad/Konfi-Castle-Kasino
|
||||||
|
|
||||||
pipeline:
|
steps:
|
||||||
clone:
|
# Needed to get the versions right as they depend on tags
|
||||||
image: plugins/git
|
- name: fetch-tags
|
||||||
depth: 50
|
image: docker:git
|
||||||
tags: true
|
commands:
|
||||||
|
- git fetch --tags
|
||||||
|
|
||||||
build:
|
- name: build
|
||||||
image: webhippie/golang:edge
|
image: vikunja/golang-build:latest
|
||||||
pull: true
|
pull: true
|
||||||
environment:
|
|
||||||
TAGS: bindata sqlite
|
|
||||||
GOPATH: /srv/app
|
|
||||||
commands:
|
commands:
|
||||||
- make build
|
- make build
|
||||||
when:
|
when:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
depends_on: [ fetch-tags ]
|
||||||
|
|
||||||
static:
|
- name: static
|
||||||
image: karalabe/xgo-latest:latest
|
image: techknowlogick/xgo:latest
|
||||||
pull: true
|
pull: true
|
||||||
environment:
|
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
|
GOPATH: /srv/app
|
||||||
commands:
|
commands:
|
||||||
|
- export PATH=$PATH:$GOPATH/bin
|
||||||
- make release
|
- make release
|
||||||
when:
|
depends_on: [ fetch-tags ]
|
||||||
event: [ push, tag ]
|
|
||||||
|
# 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