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"]