-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.drone.yml
38 lines (36 loc) · 2.08 KB
/
.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
kind: pipeline
type: docker
name: release artifacts
steps:
- name: build
image: golang:1.17
commands:
- GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/drone-docker-runner-linux-amd64
- GOOS=linux GOARCH=arm64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/drone-docker-runner-linux-arm64
- GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/drone-docker-runner-darwin-amd64
- GOOS=darwin GOARCH=arm64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/drone-docker-runner-darwin-arm64
- GOOS=windows GOARCH=amd64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/drone-docker-runner-windows-amd64.exe
- GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/harness-docker-runner-linux-amd64
- GOOS=linux GOARCH=arm64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/harness-docker-runner-linux-arm64
- GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/harness-docker-runner-darwin-amd64
- GOOS=darwin GOARCH=arm64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/harness-docker-runner-darwin-arm64
- GOOS=windows GOARCH=amd64 go build -ldflags "-X main.version=${DRONE_TAG##v}" -o release/harness-docker-runner-windows-amd64.exe
- name: release
image: plugins/github-release
settings:
files:
- release/drone-docker-runner-linux-amd64
- release/drone-docker-runner-linux-arm64
- release/drone-docker-runner-darwin-amd64
- release/drone-docker-runner-darwin-arm64
- release/drone-docker-runner-windows-amd64.exe
- release/harness-docker-runner-linux-amd64
- release/harness-docker-runner-linux-arm64
- release/harness-docker-runner-darwin-amd64
- release/harness-docker-runner-darwin-arm64
- release/harness-docker-runner-windows-amd64.exe
api_key:
from_secret: github_token
trigger:
event:
- tag