abra/.drone.yml

65 lines
1.2 KiB
YAML
Raw Normal View History

2021-07-15 13:37:54 +00:00
---
kind: pipeline
name: coopcloud.tech/abra
steps:
- name: make check
image: golang:1.19
commands:
- make check
2021-07-15 13:37:54 +00:00
- name: make build
image: golang:1.19
2021-07-15 13:37:54 +00:00
commands:
- make build
2021-07-15 20:29:31 +00:00
- name: make test
image: golang:1.19
commands:
- make test
2021-07-15 20:29:31 +00:00
- name: notify on failure
image: plugins/matrix
settings:
homeserver: https://matrix.autonomic.zone
roomid: "IFazIpLtxiScqbHqoa:autonomic.zone"
userid: "@autono-bot:autonomic.zone"
accesstoken:
from_secret: autono_bot_access_token
depends_on:
- make check
2021-07-15 20:29:31 +00:00
- make build
- make test
2021-07-15 20:29:31 +00:00
when:
status:
- failure
- name: fetch
image: docker:git
commands:
- git fetch --tags
depends_on:
- make check
- make build
- make test
2021-09-07 05:16:08 +00:00
when:
event: tag
- name: release
image: golang:1.19
environment:
GITEA_TOKEN:
from_secret: goreleaser_gitea_token
volumes:
- name: deps
path: /go
commands:
- curl -sL https://git.io/goreleaser | bash
depends_on:
- fetch
when:
event: tag
volumes:
- name: deps
temp: {}