From 728aca8f5c4d3bb942fa1da8e13d6cdae6fc0b04 Mon Sep 17 00:00:00 2001 From: deveunhwa Date: Wed, 6 Nov 2024 04:59:49 +0900 Subject: [PATCH 1/2] =?UTF-8?q?Fix:=20Dockerfile=20=EB=A3=A8=ED=8A=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b7436a5..d9d1fe5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,8 @@ FROM openjdk:17-jdk-alpine WORKDIR /app # Copy the built jar file -COPY build/libs/*.jar app.jar +COPY build/libs/*.jar /app.jar # Set the entry point to run the application EXPOSE 8080 -CMD ["java", "-jar", "-Dspring.profiles.active=prod", "/app.jar"] +CMD ["java", "-jar", "-Dspring.profiles.active=prod", "/app.jar"] \ No newline at end of file From b93f8d137a22b70972cb02ecc29b4776f703305e Mon Sep 17 00:00:00 2001 From: deveunhwa Date: Wed, 6 Nov 2024 05:03:45 +0900 Subject: [PATCH 2/2] =?UTF-8?q?Fix:=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EC=97=90=EB=9F=AC=20=ED=99=95=EC=9D=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CICD.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index 36b77f7..544a78a 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -120,7 +120,10 @@ jobs: # 테스트 단계 - name: Test Frontend Response - run: curl --fail http://${{ secrets.EC2_HOST }} || exit 1 + run: | + for i in {1..5}; do + curl --fail http://${{ secrets.EC2_HOST }} && break || sleep 15 + done || exit 1 - name: Test Backend Response run: curl --fail http://${{ secrets.EC2_HOST }}/api/ || exit 1 \ No newline at end of file