-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
42 lines (38 loc) · 806 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
kind: pipeline
type: docker
name: build_publish
platform:
os: linux
arch: amd64
steps:
- name: build
image: golang
environment:
CGO_ENABLED: 0
commands:
- GOOS=linux GOARCH=amd64 go build -o dist/minio-database-plugin_${DRONE_TAG}_linux_amd64 ./cmd/minio-database-plugin/
- cd ./dist; find * -type f -name 'minio-database-plugin*' -exec shasum -a 256 {} \; > SHA256
- name: publish-artifacts
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_api_key
base_url:
from_secret: gitea_api_url
files: dist/*
trigger:
event:
- tag
---
kind: secret
name: gitea_api_key
get:
path: secrets/drone/gitea_api
name: key
---
kind: secret
name: gitea_api_url
get:
path: secrets/drone/gitea_api
name: url