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 17:17:02 +02:00
|
|
|
build_and_test:
|
|
|
|
image: rust
|
|
|
|
commands:
|
|
|
|
- cargo build --release
|
|
|
|
- cargo test --release
|
|
|
|
|
|
|
|
gitea_release:
|
|
|
|
# http://plugins.drone.io/drone-plugins/drone-gitea-release/
|
|
|
|
image: plugins/gitea-release
|
|
|
|
files: target/release/reel-moby
|
2021-10-28 10:36:15 +02:00
|
|
|
secrets: [api_key, base_url, gitea_release_api_key, plugin_api_key]
|
2021-10-27 17:18:35 +02:00
|
|
|
when:
|
2021-10-27 22:23:12 +02:00
|
|
|
event: tag
|
2021-10-27 17:17:02 +02:00
|
|
|
tag: test*
|
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
|
2021-10-27 22:23:12 +02:00
|
|
|
|
|
|
|
|
|
|
|
# http://plugins.drone.io/drone-plugins/drone-github-release/
|