release-tool 0.2.1

Configuration-driven release lifecycle for computed-parameter repositories
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mod docker_archive;
mod maven_reactor;

pub use docker_archive::DockerArchiveTarget;
pub use maven_reactor::MavenReactorTarget;

use crate::domain::{ArtifactManifest, ReleaseCandidate, TargetPlan};
use anyhow::Result;
use std::path::Path;

pub trait TargetAdapter {
    fn resolve(&self, release: &ReleaseCandidate) -> Result<TargetPlan>;
    fn prepare(&self, plan: &TargetPlan, staging: &Path) -> Result<ArtifactManifest>;
}