Skip to content

Commit

Permalink
chore: docker build 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonjy committed Apr 19, 2024
1 parent dacc0b3 commit 5a860d4
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,18 @@ jobs:
./gradlew clean build -x test
# dockerfile을 통해 이미지를 빌드하고, 이를 docker repo로 push
- name: Docker build & push to docker repo
- name: Docker build & push CORE to docker repo
working-directory: ./backend/core
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker build -f ./backend/core/Dockerfile -t ${{ secrets.DOCKER_USERNAME }}/${{ secrets.CORE_DOCKER_REPO }} ./backend/core/
docker build -f Dockerfile -t ${{ secrets.DOCKER_USERNAME }}/${{ secrets.CORE_DOCKER_REPO }} .
docker push ${{ secrets.DOCKER_USERNAME }}/${{ secrets.CORE_DOCKER_REPO }}
docker build -f ./backend/ai_response_processor/Dockerfile -t ${{ secrets.DOCKER_USERNAME }}/${{ secrets.AI_DOCKER_REPO }} ./backend/ai_response_processor/
- name: Docker build & push AI to docker repo
working-directory: ./backend/ai_response_processor
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker build -f Dockerfile -t ${{ secrets.DOCKER_USERNAME }}/${{ secretsAI_DOCKER_REPO }} .
docker push ${{ secrets.DOCKER_USERNAME }}/${{ secrets.AI_DOCKER_REPO }}
# # FastAPI를 빌드하고 푸시
Expand Down

0 comments on commit 5a860d4

Please sign in to comment.