From ee2459d5380874e3ee30dcb6444006ab8f7348f7 Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 9 Mar 2023 23:17:19 +0100 Subject: [PATCH] Initial commit --- .drone.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..e37188a --- /dev/null +++ b/.drone.yml @@ -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