Skip to content

Commit

Permalink
Chore: 환경변수 적용방식 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
rrosiee committed Jun 1, 2024
1 parent 3cb06f1 commit 639eeca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- name: create env file
run: |
echo "${{ secrets.ENV_FILE }}" > ./.env
echo "${{ secrets.ENV_FILE }}" > ./env
shell: bash

- name: Build with Gradle
Expand Down Expand Up @@ -52,4 +52,4 @@ jobs:
sudo docker rm ticats
sudo docker image rm gabang2/ticats:latest
sudo docker pull gabang2/ticats:latest
sudo docker run -d -p 8080:8080 --name ticats --env-file=.env gabang2/ticats:latest
sudo docker run -d -p 8080:8080 --name ticats --env-file=env gabang2/ticats:latest
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} app.jar

# .env 파일을 컨테이너로 복사
COPY .env .env
COPY env env

# 애플리케이션 실행
ENTRYPOINT ["java", "-jar", "/app.jar"]

0 comments on commit 639eeca

Please sign in to comment.