From 62acb7504cd26f874564787c04361c9ee77ffc5c Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Mon, 18 Jan 2021 07:37:35 +0100 Subject: [PATCH] Change to ofesseler/gluster_exporter --- .drone.yml | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 02a126b..bffff0d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,11 +9,31 @@ platform: steps: - name: build image: golang:alpine + volumes: + - name: go + path: /go commands: - apk add git - - mkdir -p $GOPATH/src/github.com/gluster - - cd $GOPATH/src/github.com/gluster - - git clone https://github.com/gluster/gluster-prometheus.git - - cd $GOPATH/src/github.com/gluster/gluster-prometheus - - ./scripts/install-reqs.sh - - PREFIX=/usr/local make + - go get github.com/ofesseler/gluster_exporter + - ls $GOPATH/bin/gluster_exporter + + - name: upload-release + image: plugins/s3 + volumes: + - name: go + path: /go + settings: + bucket: georg-drone + source: /go/bin/gluster_exporter + target: /keep/${DRONE_REPO} + path_style: true + strip_prefix: output/ + endpoint: https://s3.j19.planetexpress.cc + access_key: georg-drone + secret_key: + from_secret: minio_key + +volumes: + - name: go + temp: {} +