feat: use tag instead
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
96ea5e83f5
commit
2735b7d2cf
@ -362,18 +362,13 @@ impl MainAction for RustService {
|
||||
.unwrap()
|
||||
.as_secs();
|
||||
|
||||
let image_tag = container
|
||||
.publish(format!(
|
||||
"docker.io/kasperhermansen/{}:main-{}",
|
||||
self.bin_name, timestamp,
|
||||
))
|
||||
.await?;
|
||||
let tag = format!(
|
||||
"docker.io/kasperhermansen/{}:main-{}",
|
||||
self.bin_name, timestamp,
|
||||
);
|
||||
|
||||
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 =
|
||||
|
Loading…
Reference in New Issue
Block a user