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()
.as_secs();
let image_tag = container
.publish(format!(
let tag = format!(
"docker.io/kasperhermansen/{}:main-{}",
self.bin_name, timestamp,
))
.await?;
);
let (_, image_tag) = image_tag
.split_once(':')
.ok_or(eyre::anyhow!("failed to split image tag at :"))?;
ctx.set_image_tag(image_tag)?;
container.publish(tag).await?;
ctx.set_image_tag(tag)?;
if self.deployment {
let update_deployments_docker_image =