Skip to content

Commit

Permalink
chore: CI-CD 파일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoya324 committed Jun 18, 2024
1 parent a1470c5 commit 62699b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ jobs:
# Check if the JAR file exists
- name: Check JAR file exists
run: ls -al build/libs
- name: Checkout repository
uses: actions/checkout@v3

# Log in to Docker Hub
- name: Log in to Docker Hub
Expand Down Expand Up @@ -77,6 +75,7 @@ jobs:
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PEM_KEY }}
script: |
ssh-keyscan -H ${{ secrets.PUBLIC_DNS }} >> ~/.ssh/known_hosts
docker pull ${{ steps.meta.outputs.tags }}-${{ github.run_number }}
docker stop maru_egg || true
docker rm maru_egg || true
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ EXPOSE 8080
ARG JAR_FILE=build/libs/MARU_EGG-0.0.1-SNAPSHOT.jar

# Add the application's jar to the container
ADD ${JAR_FILE} MARU_EGG.jar
COPY ${JAR_FILE} MARU_EGG.jar

# Run the jar file
ENTRYPOINT ["java", "-jar", "MARU_EGG.jar"]

0 comments on commit 62699b7

Please sign in to comment.