2021-10-24 23:36:30 +02:00
|
|
|
# https://woodpecker-ci.org/docs/usage/intro
|
2021-10-24 13:18:43 +02:00
|
|
|
pipeline:
|
2021-10-25 00:14:11 +02:00
|
|
|
|
2021-10-27 16:53:36 +02:00
|
|
|
#build_and_test:
|
|
|
|
# image: rust
|
|
|
|
# commands:
|
|
|
|
# - cargo build --release
|
|
|
|
# - cargo test --release
|
2021-10-27 16:08:28 +02:00
|
|
|
|
2021-10-27 16:15:25 +02:00
|
|
|
notify:
|
|
|
|
# http://plugins.drone.io/appleboy/drone-discord/
|
|
|
|
image: appleboy/drone-discord
|
2021-10-27 16:55:46 +02:00
|
|
|
secrets: [ discord_webhook_id, discord_webhook_token]
|
2021-10-27 17:13:02 +02:00
|
|
|
message: "build {{build.number}} failed. Fix me please."
|
|
|
|
when:
|
|
|
|
status: failure
|
|
|
|
|
|
|
|
gitea_release:
|
|
|
|
# http://plugins.drone.io/drone-plugins/drone-gitea-release/
|
|
|
|
image: plugins/gitea-release
|
|
|
|
files: target/release/reel-moby
|
|
|
|
secrest: [api_key, base_url]
|
|
|
|
#when
|
|
|
|
# tag: v*
|