bird_exporter/.drone.yml
Simon Marsh e1e6d5c513
All checks were successful
continuous-integration/drone/push Build is passing
add drone
2023-05-27 12:50:01 +01:00

41 lines
746 B
YAML

---
kind: pipeline
type: docker
name: default
steps:
- name: build
image: golang
environment:
CGO_ENABLED: 0
commands:
- go build
- name: extract version
image: ubuntu:latest
commands:
- grep 'const version string' main.go | tr -d ' "' | cut -d'=' -f2 > .version
- name: upload artifact
image: git.burble.dn42/burble.dn42/drone-gitea-pkg-plugin:latest
settings:
token:
from_secret: TOKEN
version: .version
artifact: bird_exporter
package: bird_exporter
owner: mirrors
---
kind: secret
name: TOKEN
get:
path: burble.dn42/kv/data/drone/git.burble.dn42
name: artifact-token
---
kind: signature
hmac: 757775a4643eedc3d70d60cc6eb009b5704f417245e1f0e66bdfc4e52505bd1a
...