From 994252ca65494c7e86edef1e76f2c1a7a8948ba5 Mon Sep 17 00:00:00 2001 From: sonwonjae Date: Mon, 21 Apr 2025 00:49:40 +0900 Subject: [PATCH] fix: add asg color check logic --- .github/workflows/Release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index ad2d419..5f2667e 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -186,7 +186,9 @@ jobs: - name: Wait for ALB Health Check → Switch Listener → Shutdown old ASG run: | - TG_NAME="weplate-tg-${TARGET_ASG##*-}" + ASG_COLOR="${TARGET_ASG##*-}" + TG_NAME="weplate-tg-${ASG_COLOR}" + echo "✅ [$ASG_COLOR] start" TG_ARN=$(aws elbv2 describe-target-groups \ --names "$TG_NAME" \ --query "TargetGroups[0].TargetGroupArn" --output text)