From eb69bb3a8a54c7545a3c28a5bcb7eb589f6d2f6d Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Mon, 18 Jan 2021 11:52:44 +0100 Subject: [PATCH] build and upload the right binary --- .drone.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index bffff0d..4fcbf7a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,7 +15,10 @@ steps: commands: - apk add git - go get github.com/ofesseler/gluster_exporter - - ls $GOPATH/bin/gluster_exporter + - cd $GOPATH/src/github.com/ofesseler/gluster_exporter + - ls + - go build + - ls - name: upload-release image: plugins/s3 @@ -24,7 +27,7 @@ steps: path: /go settings: bucket: georg-drone - source: /go/bin/gluster_exporter + source: /go/src/github.com/ofesseler/gluster_exporter/gluster_exporter target: /keep/${DRONE_REPO} path_style: true strip_prefix: output/