35 lines
691 B
YAML
35 lines
691 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: greeting
|
|
image: alpine
|
|
commands:
|
|
- echo hello
|
|
- echo world
|
|
|
|
- name: test
|
|
image: golang
|
|
volumes:
|
|
- name: deps
|
|
path: /go
|
|
commands:
|
|
- go test ./...
|
|
|
|
- name: build
|
|
image: golang
|
|
volumes:
|
|
- name: deps
|
|
path: /go
|
|
commands:
|
|
- go build ./...
|
|
|
|
- name: notify
|
|
image: pluie/alpine
|
|
commands:
|
|
- curl -X POST https://zulip.meta-tech.academy/api/v1/messages -u drone-bot@zulip.meta-tech.academy:iIm8Hc2VuvK06iDxUODUIndlRu6As6bO --data-urlencode type=stream --data-urlencode 'to="gitea"' --data-urlencode topic=build --data-urlencode content=" build commit {{build.commit}}"
|
|
|
|
volumes:
|
|
- name: deps
|
|
temp: {} |