From 944f3ef35452a87bdeda2a0d8847c695bc194f08 Mon Sep 17 00:00:00 2001 From: Chris Kalafarski Date: Fri, 20 Dec 2024 18:59:59 -0500 Subject: [PATCH] Fix image tag regex --- ci/src/slack-message-handler/builder.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/src/slack-message-handler/builder.mjs b/ci/src/slack-message-handler/builder.mjs index 59722e93d..d2bbfeb43 100644 --- a/ci/src/slack-message-handler/builder.mjs +++ b/ci/src/slack-message-handler/builder.mjs @@ -106,7 +106,7 @@ export async function statusBlocks(event) { // The image tag (truncated), like // 165df6a const tag = imageName - .match(/:([a-z\-]+)?([a-f0-9]+)$/)[2] + .match(/:([a-z\-]+)?([a-f0-9_\-]+)$/)[2] .substring(0, 7); const ecrUrl = `https://${region}.console.aws.amazon.com/ecr/repositories/private/${accountId}/${repoName}?region=${region}`;