From ca95e3296d4cb199ebfbf7a7f39a2bdcc2f926f8 Mon Sep 17 00:00:00 2001 From: Gerald Pinder Date: Mon, 1 Jan 2024 12:31:35 -0500 Subject: [PATCH] fix: Allow image_version to be a String --- src/module_recipe.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/module_recipe.rs b/src/module_recipe.rs index cd90d7f..fa7a5ac 100644 --- a/src/module_recipe.rs +++ b/src/module_recipe.rs @@ -15,7 +15,7 @@ pub struct Recipe { pub base_image: String, #[serde(alias = "image-version")] - pub image_version: u16, + pub image_version: String, pub modules: Vec, @@ -31,7 +31,7 @@ impl Recipe { trace!("Recipe::generate_tags()"); let mut tags: Vec = Vec::new(); - let image_version = self.image_version; + let image_version = &self.image_version; let timestamp = Local::now().format("%Y%m%d").to_string(); if let (Ok(commit_branch), Ok(default_branch), Ok(commit_sha), Ok(pipeline_source)) = (