Added woodpecker config

This commit is contained in:
Gregory Ballantine 2022-08-31 18:19:30 -04:00
parent 6f9f084075
commit a778de5b34

30
.woodpecker.yml Normal file
View File

@ -0,0 +1,30 @@
pipeline:
test_build:
image: rust:1.63
commands:
- "cargo build"
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/adept target/release/adept-${CI_COMMIT_TAG}-linux-x86_64"
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/adept*.deb"
- "target/generate-rpm/adept*.rpm"
title: "${CI_COMMIT_TAG}"
when:
event: tag