2022-07-22 18:02:45 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: golang
|
|
|
|
commands:
|
2022-07-24 02:40:44 +02:00
|
|
|
- apt-get update
|
|
|
|
- apt-get install -y libolm-dev
|
2022-07-22 18:02:45 +02:00
|
|
|
- go build -ldflags="-s -w" -o matrix-pretix .
|
|
|
|
|
|
|
|
- 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
|
2023-03-05 17:53:03 +01:00
|
|
|
|
|
|
|
- name: push
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
auto_tag: yes
|
|
|
|
password:
|
|
|
|
from_secret: api_key
|
|
|
|
registry: git.luj0ga.de
|
|
|
|
repo: git.luj0ga.de/luca/matrix-prometheus
|
|
|
|
username: _
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|