From 1b30af0d4fd0d3eb45846c8a98fc631dd13db20c Mon Sep 17 00:00:00 2001 From: AJ Date: Mon, 25 Mar 2024 09:15:43 +0000 Subject: [PATCH] fix taggin suffix --- pkg/ecs/ecs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/ecs/ecs.go b/pkg/ecs/ecs.go index 96ec0c9..75e9ec1 100644 --- a/pkg/ecs/ecs.go +++ b/pkg/ecs/ecs.go @@ -48,7 +48,8 @@ func (c *Client) NewTaskRevision( if image, ok := images[*container.Name]; ok { newImage := image if strings.HasPrefix(image, ":") { - newImage = *container.Image + image + oldIMG := strings.Split(*container.Image, ":") + newImage = oldIMG[0] + image } c.logger.Info(