feat: use tag instead

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-02-03 20:42:17 +01:00
parent 96ea5e83f5
commit 2735b7d2cf
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -362,18 +362,13 @@ impl MainAction for RustService {
.unwrap() .unwrap()
.as_secs(); .as_secs();
let image_tag = container let tag = format!(
.publish(format!( "docker.io/kasperhermansen/{}:main-{}",
"docker.io/kasperhermansen/{}:main-{}", self.bin_name, timestamp,
self.bin_name, timestamp, );
))
.await?;
let (_, image_tag) = image_tag container.publish(tag).await?;
.split_once(':') ctx.set_image_tag(tag)?;
.ok_or(eyre::anyhow!("failed to split image tag at :"))?;
ctx.set_image_tag(image_tag)?;
if self.deployment { if self.deployment {
let update_deployments_docker_image = let update_deployments_docker_image =