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 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