Zealot/.woodpecker.yml

33 lines
795 B
YAML
Raw Normal View History

2022-08-31 18:19:30 -04:00
pipeline:
tests:
2022-08-31 18:19:30 -04:00
image: rust:1.63
commands:
2022-09-02 02:24:39 -04:00
- "apt update"
- "apt install -y lsof"
- "cargo test"
2022-08-31 18:19:30 -04:00
build_release:
image: rust:1.63
commands:
- "cargo install cargo-deb cargo-generate-rpm"
- "cargo build --release"
- "cargo deb"
- "cargo generate-rpm"
- "mv target/release/zealot target/release/zealot-${CI_COMMIT_TAG}-linux-x86_64"
2022-08-31 18:19:30 -04:00
when:
event: tag
gitea_release:
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea_api_key
base_url: https://git.metaunix.net
files:
- "target/release/*${CI_COMMIT_TAG}-linux-x86_64"
- "target/debian/zealot*.deb"
- "target/generate-rpm/zealot*.rpm"
2022-08-31 18:19:30 -04:00
title: "${CI_COMMIT_TAG}"
when:
event: tag