You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

78 lines
1.9 KiB

kind: pipeline
name: default
workspace:
base: /go
path: src/git.kolaente.de/konrad/Konfi-Castle-Kasino
steps:
# Needed to get the versions right as they depend on tags
- name: fetch-tags
image: docker:git
commands:
- git fetch --tags
- name: build
image: vikunja/golang-build:latest
pull: true
commands:
- make lint
- make build
when:
event: [ push, tag, pull_request ]
depends_on: [ fetch-tags ]
- name: static
image: techknowlogick/xgo:latest
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.
GOPATH: /srv/app
commands:
- export PATH=$PATH:$GOPATH/bin
- make release-dirs
- make release-windows
- make release-linux
- make release-darwin
depends_on: [ fetch-tags ]
- name: static-deps
image: techknowlogick/xgo:latest
pull: true
commands:
- export PATH=$PATH:$GOPATH/bin
- make release-dirs
- make release-download-deps
- make release-electron-prepare
depends_on: [ fetch-tags ]
- name: after-build-static
image: techknowlogick/xgo:latest
pull: true
depends_on:
- static
- static-deps
commands:
- make release-copy
- make release-check
- make release-os-package
- make release-electron-bundle
- make release-zip
# 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/zip/
source: dist/zip/*
target: /master/
depends_on: [ after-build-static ]