File tree Expand file tree Collapse file tree 2 files changed +58
-2
lines changed Expand file tree Collapse file tree 2 files changed +58
-2
lines changed Original file line number Diff line number Diff line change 1212 image : golang:1.19
1313 pull : always
1414 commands :
15- - go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
15+ - go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.2
1616 - golangci-lint version
17- - golangci-lint run
17+ - golangci-lint run --timeout=300s
1818 volumes :
1919 - name : gopath
2020 path : " /go"
@@ -252,3 +252,56 @@ trigger:
252252 ref :
253253 - refs/heads/master
254254 - refs/tags/**
255+
256+ ---
257+
258+ kind : pipeline
259+ type : vm
260+
261+ pool :
262+ use : ubuntu
263+
264+ steps :
265+ - name : build
266+ pull : always
267+ image : golang:1.19
268+ commands :
269+ - GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -a -tags netgo -o release/drone-s3-linux-amd64
270+ - GOOS=linux GOARCH=arm64 go build -ldflags "-s -w" -a -tags netgo -o release/drone-s3-linux-arm64
271+ - GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" -a -tags netgo -o release/drone-s3-darwin-amd64
272+ - GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w" -a -tags netgo -o release/drone-s3-darwin-arm64
273+ - GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -a -tags netgo -o release/drone-s3-windows-amd64.exe
274+
275+ environment :
276+ CGO_ENABLED : 0
277+ GO111MODULE : on
278+
279+ - name : zstd-compress
280+ commands :
281+ - sudo apt-get update -y
282+ - sudo apt-get install -y zstd
283+ - zstd release/drone-s3-linux-amd64
284+ - zstd release/drone-s3-linux-arm64
285+ - zstd release/drone-s3-darwin-arm64
286+ - zstd release/drone-s3-darwin-amd64
287+ - zstd release/drone-s3-windows-amd64.exe
288+
289+ - name : release
290+ image : plugins/github-release
291+ settings :
292+ files :
293+ - release/drone-s3-linux-amd64.zst
294+ - release/drone-s3-linux-arm64.zst
295+ - release/drone-s3-darwin-arm64.zst
296+ - release/drone-s3-darwin-amd64.zst
297+ - release/drone-s3-windows-amd64.exe.zst
298+ api_key :
299+ from_secret : github_token
300+ when :
301+ event :
302+ - tag
303+ depends_on :
304+ - linux-amd64
305+ - linux-arm64
306+ - windows-1809
307+ - windows-ltsc2022
Original file line number Diff line number Diff line change 1+ run :
2+ binary :
3+ source : https://github.com/drone-plugins/drone-s3/releases/download/{{ release }}/drone-s3-{{ os }}-{{ arch }}.zst
You can’t perform that action at this time.
0 commit comments