forked from drone-plugins/drone-s3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
36 lines (31 loc) · 818 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
kind: pipeline
type: vm
pool:
use: ubuntu
steps:
- name: build-push
pull: always
image: golang:1.19
commands:
- "go build -v -ldflags \"-s -w\" -a -o release/drone-s3-linux-amd64"
- "GOOS=darwin GOARCH=arm64 go build -ldflags \"-s -w\" -a -o release/drone-s3-darwin-arm64"
environment:
CGO_ENABLED: 0
GO111MODULE: on
- name: zstd-compress
commands:
- "sudo apt-get update -y"
- "sudo apt-get install -y zstd"
- "zstd release/drone-s3-linux-amd64"
- "zstd release/drone-s3-darwin-arm64"
- name: release
image: plugins/github-release
settings:
files:
- release/drone-s3-linux-amd64.zst
- release/drone-s3-darwin-arm64.zst
api_key:
from_secret: github_token
when:
event:
- tag