srtrelay/.drone.yml

46 lines
728 B
YAML
Raw Permalink Normal View History

2021-10-18 20:53:03 +02:00
---
kind: pipeline
type: docker
name: default
clone:
disable: yes
environment:
BRANCH: master
CLONE_URL: https://github.com/lujoga/srtrelay.git
steps:
- name: clone
image: alpine/git
commands:
- 'git clone $CLONE_URL .'
- git switch $BRANCH
- name: build
image: golang
commands:
2021-10-18 21:01:27 +02:00
- apt-get update
- apt-get install -y libsrt-openssl-dev
2021-10-18 20:53:03 +02:00
- go build
2021-12-16 09:54:53 +01:00
- strip srtrelay
2021-10-18 20:53:03 +02:00
- name: release
image: plugins/gitea-release
settings:
api_key:
from_secret: api_key
base_url: https://git.luj0ga.de
files:
- srtrelay
checksum:
- md5
- sha1
- sha256
2021-10-18 21:17:43 +02:00
title: ${DRONE_TAG}
2021-10-18 20:53:03 +02:00
trigger:
event:
- tag