go-build-apcupsd-exporter/.drone.yml

32 lines
601 B
YAML
Raw Permalink Normal View History

2023-01-08 12:28:23 +01:00
kind: pipeline
name: build
type: docker
steps:
- name: clone-repo
image: golang:1.20rc2-alpine3.17
commands:
- apk add git
- git clone https://git.lipovcan.cz/Upstream/apcupsd_exporter.git
2023-01-08 12:33:22 +01:00
- cd apcupsd_exporter
2023-01-08 12:48:40 +01:00
- go build -o apcupsdexporter
2023-01-08 12:35:33 +01:00
- ls -lah
2023-01-08 12:46:15 +01:00
- name: gitea_release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_token
base_url: https://git.lipovcan.cz
files:
- "apcupsd_exporter/apcupsdexporter"
checksum:
- md5
- sha1
- sha256
- sha512
- adler32
2023-01-08 12:48:40 +01:00
- crc32
when:
event:
- tag