2018-10-14 08:02:23 +00:00
|
|
|
workspace:
|
|
|
|
base: /go
|
2018-10-14 08:17:04 +00:00
|
|
|
path: src/gitea.meow.tf/tyler/deb-simple
|
2018-10-14 08:02:23 +00:00
|
|
|
|
|
|
|
pipeline:
|
2018-10-14 08:08:44 +00:00
|
|
|
dependencies:
|
2018-10-14 08:02:23 +00:00
|
|
|
image: golang:latest
|
|
|
|
commands:
|
2018-10-14 08:08:44 +00:00
|
|
|
- mkdir /go/bin
|
|
|
|
- curl https://glide.sh/get | sh
|
|
|
|
- glide install
|
|
|
|
build-i386:
|
|
|
|
image: golang:latest
|
|
|
|
group: build
|
|
|
|
commands:
|
|
|
|
- mkdir -p build/i386
|
2018-10-14 08:18:57 +00:00
|
|
|
- GOOS=linux GOARCH=386 go build -o build/i386/deb-simple
|
2018-10-14 08:08:44 +00:00
|
|
|
build-amd64:
|
|
|
|
image: golang:latest
|
|
|
|
group: build
|
|
|
|
commands:
|
|
|
|
- mkdir -p build/amd64
|
2018-10-14 08:18:57 +00:00
|
|
|
- go build -o build/amd64/deb-simple
|
2018-10-14 08:08:44 +00:00
|
|
|
build-armv7:
|
|
|
|
image: golang:latest
|
|
|
|
group: build
|
|
|
|
commands:
|
|
|
|
- mkdir -p build/armv7
|
2018-10-14 08:18:57 +00:00
|
|
|
- GOOS=linux GOARCH=arm GOARM=7 go build -o build/armv7/deb-simple
|