Skip to content

Commit

Permalink
Merge pull request #3 from hubo-gillajabi/HUBOBE-2-be-백엔드-기초-세팅
Browse files Browse the repository at this point in the history
fix: docker build 문제 해결
  • Loading branch information
haroya01 authored May 23, 2024
2 parents b67cafc + 4d56a3c commit 3321e3d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci-cd-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}
7 changes: 7 additions & 0 deletions Dockerfile-dev
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 3321e3d

Please sign in to comment.