32 lines
601 B
YAML
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 |