core/.drone.yml

35 lines
953 B
YAML
Raw Normal View History

2023-12-12 22:55:19 +00:00
kind: pipeline
2023-12-12 22:59:18 +00:00
type: docker
2023-12-12 22:55:19 +00:00
name: default
steps:
2023-12-12 22:59:18 +00:00
- name: greeting
image: alpine
commands:
- echo hello
- echo world
2023-12-12 22:55:19 +00:00
- name: test
image: golang
volumes:
- name: deps
path: /go
commands:
- go test ./...
- name: build
image: golang
volumes:
- name: deps
path: /go
commands:
- go build ./...
2023-12-13 21:31:33 +00:00
- name: notify
image: pluie/alpine
commands:
2023-12-13 22:18:29 +00:00
- curl -s -k -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 \#${DRONE_BUILD_NUMBER} - ${DRONE_REPO}/${DRONE_REPO_BRANCH}/${DRONE_COMMIT} by ${DRONE_COMMIT_AUTHOR} - status:${DRONE_BUILD_STATUS}\n${DRONE_COMMIT_MESSAGE:1:-1}\n<a href=\"${DRONE_GIT_HTTP_URL:0:-3}/commit/${DRONE_COMMIT}\">${DRONE_GIT_HTTP_URL:0:-3}/commit/${DRONE_COMMIT}</a>"
2023-12-13 21:31:33 +00:00
2023-12-12 22:55:19 +00:00
volumes:
- name: deps
temp: {}