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 11:16:34 +01:00
|
|
|
- sed -i '/ghr/d' Makefile
|
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 11:11:46 +01:00
|
|
|
- make deploy
|
2022-02-08 11:09:30 +01:00
|
|
|
- ls -lah
|
2022-02-08 10:55:39 +01:00
|
|
|
- name: image-create
|
2022-02-08 10:48:18 +01:00
|
|
|
image: plugins/docker
|
2022-02-08 11:27:43 +01:00
|
|
|
settings:
|
2022-02-08 11:49:23 +01:00
|
|
|
registry: http://docker.lipovcan.cz:5000
|
2022-02-08 11:52:09 +01:00
|
|
|
repo: docker.lipovcan.cz:5000/foo/bar
|
2022-02-08 11:49:23 +01:00
|
|
|
insecure: true
|
2022-02-08 11:37:39 +01:00
|
|
|
tags:
|
|
|
|
- latest
|
|
|
|
- '1.0.1'
|
|
|
|
- '1.0'
|
2022-02-08 11:22:46 +01:00
|
|
|
|