Konfi-Castle-Kasino/.drone.yml

52 lines
1.3 KiB
YAML
Raw Normal View History

kind: pipeline
name: default
2017-07-12 23:09:10 +00:00
workspace:
base: /go
path: src/git.kolaente.de/konrad/Konfi-Castle-Kasino
2017-07-12 23:09:10 +00:00
steps:
# Needed to get the versions right as they depend on tags
- name: fetch-tags
image: docker:git
commands:
- git fetch --tags
2017-07-12 23:09:10 +00:00
- name: build
image: vikunja/golang-build:latest
2017-07-12 23:09:10 +00:00
pull: true
commands:
2019-09-04 21:31:23 +00:00
- make lint
2017-07-12 23:09:10 +00:00
- make build
when:
event: [ push, tag, pull_request ]
depends_on: [ fetch-tags ]
2017-07-12 23:09:10 +00:00
- name: static
image: techknowlogick/xgo:latest
2017-07-12 23:09:10 +00:00
pull: true
environment:
# 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.
2017-07-12 23:09:10 +00:00
GOPATH: /srv/app
commands:
- export PATH=$PATH:$GOPATH/bin
2017-07-12 23:09:10 +00:00
- make release
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
2019-09-06 21:48:22 +00:00
strip_prefix: dist/zip/
source: dist/zip/*
target: /master/
depends_on: [ static ]