go-build-apcupsd-exporter/.drone.yml
Radim Lipovčan 927123e5ef
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Update '.drone.yml'
2023-01-08 12:48:40 +01:00

32 lines
601 B
YAML

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
- cd apcupsd_exporter
- go build -o apcupsdexporter
- ls -lah
- 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
- crc32
when:
event:
- tag