From 639eeca0a71afba0e06e87357d46ce12dde4b385 Mon Sep 17 00:00:00 2001 From: gabang2 Date: Sat, 1 Jun 2024 15:25:31 +0900 Subject: [PATCH] =?UTF-8?q?Chore:=20=ED=99=98=EA=B2=BD=EB=B3=80=EC=88=98?= =?UTF-8?q?=20=EC=A0=81=EC=9A=A9=EB=B0=A9=EC=8B=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 4 ++-- Dockerfile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fd9ca76..1691d7d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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 diff --git a/Dockerfile b/Dockerfile index 71a3f1e..6193298 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]