Skip to content

Commit

Permalink
Merge branch 'main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
deveunhwa committed Nov 5, 2024
2 parents 3ea3365 + b93f8d1 commit b78dd61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/CICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit b78dd61

Please sign in to comment.