hardware-tests/.woodpecker.yml

31 lines
768 B
YAML
Raw Permalink Normal View History

2022-08-05 17:45:52 -04:00
pipeline:
test_build:
image: rust:1.62
commands:
2022-08-06 01:54:17 -04:00
- "cargo build"
2022-08-05 17:45:52 -04:00
build_release:
image: rust:1.62
commands:
2022-08-06 01:54:17 -04:00
- "cargo install cargo-deb cargo-generate-rpm"
- "cargo build --release"
- "cargo deb"
- "cargo generate-rpm"
- "mv target/release/bgbench target/release/bgbench-${CI_COMMIT_TAG}-linux-x86_64"
2022-08-05 17:45:52 -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"
2022-08-06 17:31:02 -04:00
- "target/debian/hardware-tests*.deb"
- "target/generate-rpm/hardware-tests*.rpm"
2022-08-05 17:45:52 -04:00
title: "${CI_COMMIT_TAG}"
when:
event: tag