Update '.drone.yml'
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Radim Lipovčan 2022-02-08 10:54:17 +01:00
parent 1397c8a8dd
commit d20008caf4
1 changed files with 8 additions and 17 deletions

View File

@ -3,26 +3,17 @@ name: build
type: docker
steps:
- name: build
image: plugins/docker
- name: clone
image: alpine:3
commands:
#- ln -snf /usr/share/zoneinfo/$(echo "Europe/Prague") /etc/localtime && echo $(echo "Europe/Prague") > /etc/timezone
- apk add git
- git clone https://git.lipovcan.cz/Upstream/mikrotik-exporter.git
- 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
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