From 7645d0b433a7fd93ece5f21cce50ca7dbbd19a15 Mon Sep 17 00:00:00 2001 From: goder-0 Date: Wed, 31 Jul 2024 13:54:46 +0900 Subject: [PATCH] =?UTF-8?q?[CHORE]=20=EB=B0=B0=ED=8F=AC=EA=B7=B8=EB=A3=B9?= =?UTF-8?q?=20=EC=98=A4=ED=83=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/deploy.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 0c5b02d8..a0888bbd 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -6,16 +6,12 @@ if [ -z "$DEPLOYMENT_ID" ]; then echo "Deployment ID is not set. Please ensure the deployment ID is provided." exit 1 fi - -# AWS CLI를 사용하여 배포 세부 정보 가져오기 -DEPLOYMENT_DETAILS=$(aws deploy get-deployment --deployment-id $DEPLOYMENT_ID) - # 배포 그룹 이름 추출 -DEPLOYMENT_GROUP_NAME=$(echo $DEPLOYMENT_DETAILS | jq -r '.deploymentInfo.deploymentGroupName') +DEPLOYMENT_GROUP_NAME=$(aws deploy get-deployment --deployment-id $DEPLOYMENT_ID --query 'deploymentInfo.deploymentGroupName' --output text) echo $DEPLOYMENT_GROUP_NAME # 만약 배포가 prod 라면 -if [ "$DEPLOYMENT_GROUP_NAME" = "spring-app" ]; then +if [ "$DEPLOYMENT_GROUP_NAME" = "meeteam-app" ]; then # 작업 디렉토리를 /home/ubuntu/app/prod으로 변경 cd /home/ubuntu/app/prod