6
0
Fork 0

Initial commit
continuous-integration/drone/tag Build encountered an error Details

This commit is contained in:
Luca 2023-03-09 23:17:19 +01:00
commit ee2459d538
1 changed files with 43 additions and 0 deletions

43
.drone.yml Normal file
View File

@ -0,0 +1,43 @@
---
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
- go build -ldflags="-s -w" -v .
environment:
- DEBIAN_FRONTEND=noninteractive
- 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