From a900ebae541229e32c4cd9e41b88478cb9f30211 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Mon, 27 Nov 2023 21:24:45 +0100 Subject: [PATCH] feat: with registry Signed-off-by: kjuulh --- crates/cuddle-ci/src/rust_service.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/cuddle-ci/src/rust_service.rs b/crates/cuddle-ci/src/rust_service.rs index 2f62e98..b999962 100644 --- a/crates/cuddle-ci/src/rust_service.rs +++ b/crates/cuddle-ci/src/rust_service.rs @@ -327,9 +327,16 @@ impl PullRequestAction for RustService { impl MainAction for RustService { async fn execute_main(&self) -> eyre::Result<()> { let container = self.build_release().await?; + let timestamp = std::time::SystemTime::now() + .duration_since(std::time::UNIX_EPOCH) + .unwrap() + .as_secs(); container - .publish(format!("docker.io//{}", self.bin_name)) + .publish(format!( + "docker.io/kasperhermansen/{}:main-{}", + self.bin_name, timestamp, + )) .await?; Ok(())