From 5777975546c6c9b53de5d6aa89f45a2d6bf8a5b3 Mon Sep 17 00:00:00 2001 From: gabang2 Date: Sat, 1 Jun 2024 15:30:27 +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 | 9 +-------- Dockerfile | 3 --- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1691d7d..865d245 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,11 +21,6 @@ jobs: java-version: '11' distribution: "adopt" - - name: create env file - run: | - echo "${{ secrets.ENV_FILE }}" > ./env - shell: bash - - name: Build with Gradle run: | chmod +x ./gradlew @@ -46,10 +41,8 @@ jobs: key: ${{ secrets.KEY }} envs: GITHUB_SHA script: | - ls -al - pwd sudo docker stop ticats 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 ${{ secrets.DOCKER_ENV }} gabang2/ticats:latest diff --git a/Dockerfile b/Dockerfile index 6193298..cee385d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,5 @@ FROM openjdk:11 ARG JAR_FILE=build/libs/*.jar COPY ${JAR_FILE} app.jar -# .env 파일을 컨테이너로 복사 -COPY env env - # 애플리케이션 실행 ENTRYPOINT ["java", "-jar", "/app.jar"]