matrix-pretix/.drone.yml

42 lines
758 B
YAML

---
kind: pipeline
type: docker
name: default
steps:
- name: build
image: golang
commands:
- apt-get update
- apt-get install -y libolm-dev
- go build -ldflags="-s -w" -o matrix-pretix -v .
- name: release
image: plugins/gitea-release
settings:
api_key:
from_secret: api_key
base_url: https://git.luj0ga.de
files:
- matrix-pretix
checksum:
- sha256
title: ${DRONE_TAG}
when:
event:
- tag
- name: push
image: plugins/docker
settings:
auto_tag: yes
password:
from_secret: api_key
registry: git.luj0ga.de
repo: git.luj0ga.de/franconian/matrix-pretix
username: _
when:
event:
- tag