22 lines
687 B
YAML
22 lines
687 B
YAML
|
kind: pipeline
|
||
|
name: default
|
||
|
|
||
|
steps:
|
||
|
- name: build
|
||
|
image: golang:latest
|
||
|
group: build
|
||
|
volumes:
|
||
|
- name: build
|
||
|
path: /build
|
||
|
commands:
|
||
|
- mkdir -p /build/i386 /build/amd64 /build/armv7 /build/arm64
|
||
|
- GOOS=linux GOARCH=386 go build -o /build/i386/ottomate_i386
|
||
|
- go build -o /build/amd64/ottomate_amd64
|
||
|
- GOOS=linux GOARCH=arm GOARM=7 go build -o /build/armv7/ottomate_armv7
|
||
|
- GOOS=linux GOARCH=arm64 go build -o /build/arm64/ottomate_arm64
|
||
|
- GOOS=windows GOARCH=386 go build -o /build/i386/ottomate_i386.exe
|
||
|
- GOOS=windows GOARCH=amd64 go build -o /build/amd64/ottomate_amd64.exe
|
||
|
|
||
|
volumes:
|
||
|
- name: build
|
||
|
temp: {}
|