Update '.drone.yml'
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
1397c8a8dd
commit
d20008caf4
25
.drone.yml
25
.drone.yml
@ -3,26 +3,17 @@ name: build
|
|||||||
type: docker
|
type: docker
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: clone
|
||||||
image: plugins/docker
|
image: alpine:3
|
||||||
commands:
|
commands:
|
||||||
#- ln -snf /usr/share/zoneinfo/$(echo "Europe/Prague") /etc/localtime && echo $(echo "Europe/Prague") > /etc/timezone
|
|
||||||
- apk add git
|
- apk add git
|
||||||
- git clone https://git.lipovcan.cz/Upstream/mikrotik-exporter.git
|
- git clone https://git.lipovcan.cz/Upstream/mikrotik-exporter.git
|
||||||
- mv mikrotik-exporter/* .
|
- mv mikrotik-exporter/* .
|
||||||
|
- name: build-golang
|
||||||
|
image: golang
|
||||||
|
commands:
|
||||||
|
- go build
|
||||||
|
- go test
|
||||||
|
- echo -n "5.2.6,5.2.4" > .tags
|
||||||
- name: build-image
|
- name: build-image
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
#environment:
|
|
||||||
# TOKEN:
|
|
||||||
# from_secret: one_of_the_tokens
|
|
||||||
#settings:
|
|
||||||
# username: kevinbacon
|
|
||||||
# password: pa55word
|
|
||||||
# repo: foo/bar
|
|
||||||
|
|
||||||
|
|
||||||
# - name: publish
|
|
||||||
# image: plugins/docker
|
|
||||||
# repo: foo/bar
|
|
||||||
# commands:
|
|
||||||
# - git clone https://git.lipovcan.cz/Upstream/mikrotik-exporter.git
|
|
Loading…
Reference in New Issue
Block a user