Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat #26] db 세팅 #25

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/workflows/api-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: api deploy
on:
push:
branches:
- feat/#8
- feature/db-config
- main
- develop

Expand Down Expand Up @@ -35,13 +35,23 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x ./gradlew

- name: Create config file
run: |
mkdir -p ./adapters/out-persistence/src/main/resources
echo "${{ secrets.OUT_PERSISTENCE_YML }}" > ./adapters/out-persistence/src/main/resources/application-out-persistence.yml
mkdir -p ./adapters/out-web/src/main/resources
echo "${{ secrets.OUT_WEB_GOOGLE }}" | base64 --decode > ./adapters/out-web/src/main/resources/google-services.json
echo "${{ secrets.OUT_WEB_YML }}" > ./adapters/out-web/src/main/resources/application-out-web.yml
mkdir -p ./application/src/main/resources
echo "${{ secrets.APPLICATION_CORE }}" > ./application/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
File renamed without changes.
Loading