core/.drone.yml
mahdi ca0ea24dc5
Some checks failed
continuous-integration/drone/push Build is failing
devops - drone test
2023-12-13 23:26:17 +01:00

35 lines
829 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 -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}${DRONE_COMMIT_MESSAGE:1}
volumes:
- name: deps
temp: {}