fix: clippy error for image_tag

This commit is contained in:
Gerald Pinder 2024-01-01 12:33:34 -05:00
parent ca95e3296d
commit 7dd3a8f0f9
2 changed files with 2 additions and 3 deletions

View file

@ -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

View file

@ -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 {