6
0
Fork 0
prometheus-postfix-exporter/.drone.yml

44 lines
766 B
YAML
Raw Normal View History

2023-03-09 23:17:19 +01:00
---
kind: pipeline
type: docker
name: default
clone:
disable: yes
environment:
CLONE_URL: https://github.com/kumina/postfix_exporter.git
steps:
- name: clone
image: alpine/git
commands:
- 'git clone "$CLONE_URL" .'
- 'git checkout "${DRONE_TAG%-*}"'
- name: build
image: golang
commands:
- apt-get update
- apt-get install -y libsystemd-dev
2023-03-09 23:22:11 +01:00
- 'go build -ldflags="-s -w" -v .'
2023-03-09 23:17:19 +01:00
environment:
2023-03-09 23:23:44 +01:00
DEBIAN_FRONTEND: noninteractive
2023-03-09 23:17:19 +01:00
- name: release
image: plugins/gitea-release
settings:
api_key:
from_secret: api_key
base_url: https://git.luj0ga.de
files:
- postfix_exporter
checksum:
- sha256
title: ${DRONE_TAG}
trigger:
event:
- tag