Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
  • Loading branch information
ImGdevel committed Feb 3, 2025
1 parent 945d416 commit 7f9f32a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/backend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,13 @@ jobs:
run: |
echo "$DOCKER_HUB_PASSWORD" | docker login -u "$DOCKER_HUB_USERNAME" --password-stdin
# JAR 파일이 backend 디렉토리 내 존재하도록 이동
mv backend/build/libs/*.jar backend/app.jar
# 최신 버전 태그 + latest 태그 동시 Push
docker build -t $DOCKER_HUB_USERNAME/$REPOSITORY:$IMAGE_TAG ./backend
docker build -t $DOCKER_HUB_USERNAME/$REPOSITORY:latest ./backend
docker push $DOCKER_HUB_USERNAME/$REPOSITORY:$IMAGE_TAG
docker push $DOCKER_HUB_USERNAME/$REPOSITORY:latest
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM openjdk:17-jdk-slim
WORKDIR /app

# Jar 파일 복사
COPY build/libs/*.jar app.jar
COPY app.jar app.jar

# 컨테이너 실행 시 실행할 명령어
CMD ["java", "-jar", "app.jar"]

0 comments on commit 7f9f32a

Please sign in to comment.