34 lines
407 B
YAML
34 lines
407 B
YAML
kind: pipeline
|
|
type: kubernetes
|
|
name: default
|
|
|
|
trigger:
|
|
branch:
|
|
- main
|
|
|
|
steps:
|
|
- name: Go Tests
|
|
image: golang
|
|
volumes:
|
|
- name: deps
|
|
path: /go
|
|
commands:
|
|
- cd src
|
|
- go test
|
|
|
|
- name: build
|
|
image: golang
|
|
volumes:
|
|
- name: deps
|
|
path: /go
|
|
- name: bin
|
|
path: /binaries
|
|
commands:
|
|
- cd src
|
|
- go build -o /binaries/app
|
|
volumes:
|
|
- name: deps
|
|
temp: {}
|
|
- name: bin
|
|
temp: {}
|