28 lines
431 B
YAML
28 lines
431 B
YAML
|
kind: pipeline
|
||
|
type: docker
|
||
|
name: Build Multi-Arch Gitea-CR
|
||
|
|
||
|
platform:
|
||
|
os: linux
|
||
|
arch: amd64
|
||
|
|
||
|
trigger:
|
||
|
branche:
|
||
|
- master
|
||
|
|
||
|
steps:
|
||
|
# Build binary for each architecture
|
||
|
- name: Test Binaries
|
||
|
image: golang:alpine
|
||
|
volumes:
|
||
|
- name: binaries
|
||
|
path: /binaries
|
||
|
- name: go-cache
|
||
|
path: /go
|
||
|
environment:
|
||
|
GOOS: linux
|
||
|
GOARCH: amd64
|
||
|
commands:
|
||
|
- go test -v ./pkg/
|
||
|
- go build -o /binaries/CalculateTest_amd64
|