deb-simple/.drone.yml

30 lines
811 B
YAML

workspace:
base: /go
path: src/gitea.meow.tf/tyler/deb-simple
pipeline:
dependencies:
image: golang:latest
commands:
- mkdir /go/bin
- curl https://glide.sh/get | sh
- glide install
build-i386:
image: golang:latest
group: build
commands:
- ls /go/src
- mkdir -p build/i386
- GOOS=linux GOARCH=386 go build -o build/i386/deb-simple gitea.meow.tf/tyler/deb-simple/main
build-amd64:
image: golang:latest
group: build
commands:
- mkdir -p build/amd64
- go build -o build/amd64/deb-simple gitea.meow.tf/tyler/deb-simple/main
build-armv7:
image: golang:latest
group: build
commands:
- mkdir -p build/armv7
- GOOS=linux GOARCH=arm GOARM=7 go build -o build/armv7/deb-simple gitea.meow.tf/tyler/deb-simple/main