docker-build-mikrotik-exporter/.drone.yml

19 lines
368 B
YAML
Raw Normal View History

2022-02-07 19:52:46 +01:00
kind: pipeline
name: build
type: docker
steps:
2022-02-08 10:55:39 +01:00
- name: clone-repo
2022-02-08 10:54:17 +01:00
image: alpine:3
2022-02-08 10:36:16 +01:00
commands:
2022-02-08 10:42:40 +01:00
- apk add git
2022-02-08 10:36:16 +01:00
- git clone https://git.lipovcan.cz/Upstream/mikrotik-exporter.git
2022-02-08 10:56:59 +01:00
- mv mikrotik-exporter/* . ; rm mikrotik-exporter/ -Rvf
2022-02-08 10:55:39 +01:00
- name: golang-build
2022-02-08 10:54:17 +01:00
image: golang
commands:
2022-02-08 11:06:22 +01:00
- make build
2022-02-08 11:08:01 +01:00
- make utils
2022-02-08 10:55:39 +01:00
- name: image-create
2022-02-08 10:48:18 +01:00
image: plugins/docker