2016-08-26 08:38:22 +00:00
|
|
|
workspace:
|
|
|
|
base: /go
|
2018-03-02 22:21:25 +00:00
|
|
|
path: src/github.com/JonasFranzDEV/drone-gitea-release
|
2015-11-23 00:07:57 +00:00
|
|
|
|
2016-08-26 08:38:22 +00:00
|
|
|
pipeline:
|
|
|
|
test:
|
2017-09-02 13:40:25 +00:00
|
|
|
image: golang:1.9
|
|
|
|
pull: true
|
2016-08-26 08:38:22 +00:00
|
|
|
commands:
|
|
|
|
- go vet
|
|
|
|
- go test -cover -coverprofile=coverage.out
|
|
|
|
|
2017-09-02 13:40:25 +00:00
|
|
|
build_linux_amd64:
|
|
|
|
image: golang:1.9
|
|
|
|
pull: true
|
|
|
|
group: build
|
|
|
|
environment:
|
|
|
|
- GOOS=linux
|
|
|
|
- GOARCH=amd64
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
commands:
|
2018-03-02 22:21:25 +00:00
|
|
|
- go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/amd64/drone-gitea-release
|
2017-09-02 13:40:25 +00:00
|
|
|
|
|
|
|
build_linux_arm64:
|
|
|
|
image: golang:1.9
|
|
|
|
pull: true
|
|
|
|
group: build
|
|
|
|
environment:
|
|
|
|
- GOOS=linux
|
|
|
|
- GOARCH=arm64
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
commands:
|
2018-03-02 22:21:25 +00:00
|
|
|
- go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/arm64/drone-gitea-release
|
2017-09-02 13:40:25 +00:00
|
|
|
|
|
|
|
build_linux_arm:
|
|
|
|
image: golang:1.9
|
|
|
|
pull: true
|
|
|
|
group: build
|
|
|
|
environment:
|
|
|
|
- GOOS=linux
|
|
|
|
- GOARCH=arm
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
- GOARM=7
|
|
|
|
commands:
|
2018-03-02 22:21:25 +00:00
|
|
|
- go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/arm/drone-gitea-release
|
2017-09-02 13:40:25 +00:00
|
|
|
|
|
|
|
# build_windows_amd64:
|
|
|
|
# image: golang:1.9-nanoserver
|
|
|
|
# pull: true
|
|
|
|
# group: build
|
|
|
|
# environment:
|
|
|
|
# - GOOS=windows
|
|
|
|
# - GOARCH=amd64
|
|
|
|
# - CGO_ENABLED=0
|
|
|
|
# commands:
|
2018-03-02 22:21:25 +00:00
|
|
|
# - go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/windows/amd64/drone-gitea-release
|