2019-09-11 13:03:12 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2019-09-11 13:23:40 +00:00
|
|
|
- name: test
|
|
|
|
image: golang
|
|
|
|
commands:
|
2019-09-11 13:30:22 +00:00
|
|
|
- go get
|
2019-09-11 13:23:40 +00:00
|
|
|
- go test ./...
|
|
|
|
|
2019-09-11 13:03:12 +00:00
|
|
|
- name: build
|
|
|
|
image: golang
|
|
|
|
environment:
|
|
|
|
CGO_ENABLED: 1
|
|
|
|
GOOS: linux
|
|
|
|
commands:
|
2019-09-11 13:44:59 +00:00
|
|
|
- go build -a -installsuffix cgo .
|
2019-09-11 13:03:12 +00:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: signature
|
2019-09-11 13:44:59 +00:00
|
|
|
hmac: 2d623082fddfc811a5f7527f8220477d288dd62dd6fa0ca1d66ca64d3f41b929
|
2019-09-11 13:03:12 +00:00
|
|
|
|
|
|
|
...
|