diff --git a/.drone.yml b/.drone.yml index bd4765c..caf3bc2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 @@ -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: diff --git a/plugin.yml b/plugin.yml index f04939a..5eaec0f 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,3 +1,3 @@ run: binary: - source: github.com/shubham149/drone-s3/releases/{{ release }}/drone-webhook-{{ os }}-{{ arch }} \ No newline at end of file + source: github.com/shubham149/drone-s3/releases/{{ release }}/drone-webhook-{{ os }}-{{ arch }}.zst \ No newline at end of file