From 921024f06166ba13928151e0ba46c5e08ae14f72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=ED=83=9C=EC=9C=A4?= Date: Fri, 11 Oct 2024 14:53:13 +0900 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7ab5438..dc195fb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -56,10 +56,11 @@ jobs: npm install --include=dev # property.json 파일 생성 - - name: Create property.json + - name: Create property.json with dynamic AWS_EC2_DNS run: | - echo -e "${{ env.PROPERTY_JSON }}" > ./src/configs/property.json + echo "${{ env.PROPERTY_JSON }}" | jq --arg dns "$AWS_EC2_DNS" '.publicURL = "http://\($dns)" | .catchweekServerHost = "http://\($dns):8080"' > ./src/configs/property.json + # 결과 확인 cat ./src/configs/property.json # React 앱 빌드