reel-moby/.woodpecker.yml
Thomas Eppers 52f18f20db
All checks were successful
continuous-integration/woodpecker the build was successful
added github release steps
2021-10-28 12:08:33 +02:00

38 lines
968 B
YAML

# https://woodpecker-ci.org/docs/usage/intro
pipeline:
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
secrets: [gitea_release_api_key, gitea_release_base_url]
when:
event: tag
tag: v*
github_release:
# http://plugins.drone.io/drone-plugins/drone-github-release/
image: plugins/github-release
files: target/release/reel-moby
secrets: [github_release_api_key]
when:
event: tag
tag: test*
notify:
# http://plugins.drone.io/appleboy/drone-discord/
image: appleboy/drone-discord
secrets: [ discord_webhook_id, discord_webhook_token]
message: "build {{build.number}} failed. Fix me please."
when:
status: failure
# http://plugins.drone.io/drone-plugins/drone-github-release/