31 lines
746 B
YAML
31 lines
746 B
YAML
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
|