From a62a88915e5c1a45d0d8ede319269f74ccb3fe74 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 3 Feb 2024 19:39:05 +0100 Subject: [PATCH] feat: remember to split output string Signed-off-by: kjuulh --- crates/cuddle-ci/src/rust_service.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/cuddle-ci/src/rust_service.rs b/crates/cuddle-ci/src/rust_service.rs index adbccc8..42fd949 100644 --- a/crates/cuddle-ci/src/rust_service.rs +++ b/crates/cuddle-ci/src/rust_service.rs @@ -369,6 +369,10 @@ impl MainAction for RustService { )) .await?; + let (_, image_tag) = image_tag + .split_once(':') + .ok_or(eyre::anyhow!("failed to split image tag at :"))?; + ctx.set_image_tag(image_tag)?; if self.deployment {