Skip to content

Commit

Permalink
[CHORE] 배포그룹 오타 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Goder-0 committed Jul 31, 2024
1 parent 135c928 commit 7645d0b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7645d0b

Please sign in to comment.