diff --git a/.rusty-hook.toml b/.rusty-hook.toml index bb22860..a2d0ec7 100644 --- a/.rusty-hook.toml +++ b/.rusty-hook.toml @@ -1,6 +1,5 @@ [hooks] -pre-commit = "cargo test" -pre-push = "cargo clippy -- -D warnings" +pre-commit = "cargo fmt && cargo test && cargo clippy -- -D warnings" [logging] verbose = true diff --git a/src/module_recipe.rs b/src/module_recipe.rs index fa7a5ac..2b29fa1 100644 --- a/src/module_recipe.rs +++ b/src/module_recipe.rs @@ -83,7 +83,7 @@ impl Recipe { debug!("Running in a PR"); tags.push(format!("pr-{github_event_number}-{image_version}")); } else if github_ref_name == "live" { - tags.push(format!("{image_version}")); + tags.push(image_version.to_owned()); tags.push(format!("{image_version}-{timestamp}")); tags.push("latest".to_string()); } else {