40 lines
769 B
YAML
40 lines
769 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
platform:
|
|
arch: arm64
|
|
|
|
steps:
|
|
- name: build
|
|
image: golang
|
|
volumes:
|
|
- name: go
|
|
path: /go
|
|
commands:
|
|
- go get github.com/ofesseler/gluster_exporter
|
|
- cd $GOPATH/src/github.com/ofesseler/gluster_exporter
|
|
- go build
|
|
|
|
- name: upload-release
|
|
image: plugins/s3
|
|
volumes:
|
|
- name: go
|
|
path: /go
|
|
settings:
|
|
bucket: georg-drone
|
|
source: /go/src/github.com/ofesseler/gluster_exporter/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: {}
|
|
|