From 4d56a3c448b69792e84ca725a5bdd927f69e7c38 Mon Sep 17 00:00:00 2001 From: gimdonghyeon Date: Fri, 24 May 2024 03:43:32 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20docker=20build=20=EB=AC=B8=EC=A0=9C=20?= =?UTF-8?q?=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-cd-develop.yml | 7 +++++-- Dockerfile-dev | 7 +++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 Dockerfile-dev diff --git a/.github/workflows/ci-cd-develop.yml b/.github/workflows/ci-cd-develop.yml index 2c3fd7b3..ecbbf28d 100644 --- a/.github/workflows/ci-cd-develop.yml +++ b/.github/workflows/ci-cd-develop.yml @@ -39,7 +39,7 @@ jobs: with: config-name: release-drafter.yml env: - GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }} + GITHUB_TOKEN: ${{ secrets.ACTION_SECRETS }} prerelease-identifier: 'dev' - name: docker login @@ -51,6 +51,9 @@ jobs: - name: Build And Push docker image run: | TAG=${{ github.event.release.tag_name || 'latest' }} - docker build --platform linux/arm64/v8 -t ${{ secrets.DOCKER_HUB_USERNAME }}/${{ secrets.PROJECT_NAME }}:${TAG} . + docker build -f Dockerfile-dev --platform linux/arm64/v8 -t ${{ secrets.DOCKER_HUB_USERNAME }}/${{ secrets.PROJECT_NAME }}:${TAG} . docker push ${{ secrets.DOCKER_HUB_USERNAME }}/${{ secrets.PROJECT_NAME }}:${TAG} + + + diff --git a/Dockerfile-dev b/Dockerfile-dev new file mode 100644 index 00000000..261b0136 --- /dev/null +++ b/Dockerfile-dev @@ -0,0 +1,7 @@ +FROM openjdk:17 + +COPY build/libs/gillajabi-0.0.1-SNAPSHOT.jar app.jar + +EXPOSE 8090 + +ENTRYPOINT ["java", "-Dspring.profiles.active=dev", "-jar", "app.jar"] \ No newline at end of file