Skip to content

Commit

Permalink
feat: 도커파일 위치 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jimin3263 committed Jul 18, 2024
1 parent 99b2b8b commit a53b5c8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/api-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,23 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew

- name: Create config file
run: |
mkdir -p ./api/src/main/resources
echo "${{ secrets.APPLICATION_API_YML }}" > ./api/src/main/resources/application-api.yml
- name: CORE모듈 YML 파일 생성
run: |
mkdir -p ./core/src/main/resources
echo "${{ secrets.APPLICATION_CORE_YML }}" > ./core/src/main/resources/application-core.yml
- name: Build with Gradle
run: ./gradlew :entry:web:build --no-daemon

- name: Docker build and push
run: |
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_TOKEN
docker build -t $DOCKERHUB_USERNAME/$DOCKERHUB_API_IMAGE:latest .
docker build -f entry/web/Dockerfile -t $DOCKERHUB_USERNAME/$DOCKERHUB_API_IMAGE:latest .
docker push $DOCKERHUB_USERNAME/$DOCKERHUB_API_IMAGE:latest
- name: Get Public IP
Expand Down

0 comments on commit a53b5c8

Please sign in to comment.