From 350011ce0d00b0f9eb1d85a9243d0321239305c2 Mon Sep 17 00:00:00 2001 From: Chris Kalafarski Date: Wed, 5 Jun 2024 18:58:08 -0400 Subject: [PATCH] Fix Slack messages --- ci/src/slack-message-handler/builder.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/src/slack-message-handler/builder.mjs b/ci/src/slack-message-handler/builder.mjs index af7a24aa9..bc9977e93 100644 --- a/ci/src/slack-message-handler/builder.mjs +++ b/ci/src/slack-message-handler/builder.mjs @@ -105,7 +105,9 @@ export async function statusBlocks(event) { const repoName = imageName.split(':')[0]; // The image tag (truncated), like // 165df6a - const tag = imageName.match(/:([a-f0-9]+)$/)[1].substring(0, 7); + const tag = imageName + .match(/:(prerelease\-)?([a-f0-9]+)$/)[1] + .substring(0, 7); const ecrUrl = `https://${region}.console.aws.amazon.com/ecr/repositories/private/${accountId}/${repoName}?region=${region}`; const deepEcrUrl = deepLink(accountId, ecrUrl);