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()
|
.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 =
|
||||||
|
Loading…
Reference in New Issue
Block a user