feat: Allow fresh rechunking of image
This commit is contained in:
parent
1157ac7d74
commit
50ed183cde
7 changed files with 33 additions and 8 deletions
|
|
@ -45,4 +45,7 @@ pub struct RechunkOpts<'scope> {
|
|||
#[builder(default)]
|
||||
pub compression: CompressionType,
|
||||
pub tempdir: Option<&'scope Path>,
|
||||
|
||||
#[builder(default)]
|
||||
pub clear_plan: bool,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -442,7 +442,7 @@ pub trait RechunkDriver: RunDriver + BuildDriver + ContainerMountDriver {
|
|||
"REPO" => "/var/ostree/repo",
|
||||
"PREV_REF" => &*opts.image,
|
||||
"OUT_NAME" => ostree_cache_id,
|
||||
// "PREV_REF_FAIL" => "true",
|
||||
"CLEAR_PLAN" => if opts.clear_plan { "true" } else { "" },
|
||||
"VERSION" => format!("{}", opts.version),
|
||||
"OUT_REF" => format!("oci:{ostree_cache_id}"),
|
||||
"GIT_DIR" => "/var/git",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue