Skip to content

Commit

Permalink
plugin yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham149 committed Mar 15, 2023
1 parent db2edb1 commit cd3cf30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ steps:
image: golang:1.19
commands:
- "go build -v -ldflags \"-s -w\" -a -o release/linux/amd64/drone-s3"
- GOOS=darwin GOARCH=arm64 go build -ldflags \"-s -w\" -a -o release/darwin/arm64/drone-s3"

environment:
CGO_ENABLED: 0
GO111MODULE: on
Expand All @@ -19,12 +21,14 @@ steps:
- "sudo apt-get update -y"
- "sudo apt-get install -y zstd"
- "zstd release/linux/amd64/drone-s3"
- "zstd release/darwin/arm64/drone-s3"

- name: release
image: plugins/github-release
settings:
files:
- release/linux/amd64/drone-s3.zst
- release/darwin/arm64/drone-s3.zst
api_key:
from_secret: github_token
when:
Expand Down
2 changes: 1 addition & 1 deletion plugin.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
run:
binary:
source: github.com/shubham149/drone-s3/releases/{{ release }}/drone-webhook-{{ os }}-{{ arch }}
source: github.com/shubham149/drone-s3/releases/{{ release }}/drone-webhook-{{ os }}-{{ arch }}.zst

0 comments on commit cd3cf30

Please sign in to comment.