drone pipeline
This commit is contained in:
parent
ecdfe35415
commit
0ac20a6b0f
33
.drone.yml
Normal file
33
.drone.yml
Normal file
@ -0,0 +1,33 @@
|
||||
kind: pipeline
|
||||
type: kubernetes
|
||||
name: default
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- master
|
||||
|
||||
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: {}
|
Loading…
Reference in New Issue
Block a user