Skip to content

Commit

Permalink
[BE] fix: CD 스크립트 수정 (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimprodp authored Sep 25, 2024
1 parent 346f243 commit bb70a35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/backend-dev-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
context: ./backend
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ secrets.DOCKERHUB_ID }}/review-me-app:latest
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:

- name: Pull from DockerHub
run: |
sudo docker-compose down || true
sudo docker-compose -- env-file .env.dev down || true
sudo docker pull ${{ secrets.DOCKERHUB_ID }}/review-me-app
sudo docker-compose --env-file .env.dev up -d
working-directory: ${{ env.APPLICATION_DIRECTORY }}/app
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM amazoncorretto:17-alpine-jdk

ARG JAR_FILE=./backend/build/libs/backend-0.0.1-SNAPSHOT.jar
ARG JAR_FILE=./build/libs/backend-0.0.1-SNAPSHOT.jar
COPY ${JAR_FILE} review-me-app.jar

ENTRYPOINT ["java", "-jar", "/review-me-app.jar", "-Dspring.config.location=/application.yml"]

0 comments on commit bb70a35

Please sign in to comment.