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

main이랑 develop-back 한번 합치기 #168

Merged
merged 71 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
e7e1e09
fix: 채팅 프론트 모델에 맞춰 수정
mclub4 May 2, 2024
1cac4b7
fix: git ignore 추가
mclub4 May 2, 2024
e995f3d
fix: 로깅 추가 및 로깅 레벨 변경
mclub4 May 2, 2024
2c5d0dd
fix: 채팅 리스트에 유저 아이디 추가
mclub4 May 2, 2024
b1c3eac
fix: 채팅에 닉네임 추가
mclub4 May 3, 2024
297f2c5
fix: 채팅에 닉네임 추가
mclub4 May 3, 2024
aeaa86c
Merge branch 'main' of github.com:kookmin-sw/capstone-2024-30 into fe…
mclub4 May 3, 2024
6a8d7f8
Merge pull request #132 from kookmin-sw/feautre/be/#115-CICD
mclub4 May 3, 2024
0c212d3
fix: 채팅에 room polling 추가
mclub4 May 3, 2024
779a2a4
Merge pull request #133 from kookmin-sw/feautre/be/#115-CICD
mclub4 May 3, 2024
6ac6d6a
feature: #134-Api Gateway 생성
mclub4 May 4, 2024
610691f
refactor: gateway 형식에 맞춘 리펙토링
mclub4 May 4, 2024
5df280f
fix: 쓸모없는 import문 제거
mclub4 May 4, 2024
845be93
refactor: api gateway에 맞춘 채팅 리펙토링
mclub4 May 4, 2024
db4dd53
refactor: #140-GET 요청 POST로 수정
BlueBerrySoda May 4, 2024
e471cad
fix: gateway Routin 수정
mclub4 May 4, 2024
cb38f70
fix: gitignore 명시적으로 변경
mclub4 May 4, 2024
fe9f55f
fix: paraeter 버그 수정
mclub4 May 4, 2024
602d05d
fix: Swagger 경로 추가
mclub4 May 4, 2024
f7dcd3c
fix: Swagger 경로 오류 수정
mclub4 May 4, 2024
0673f0e
refactor: #140-Swagger 문서 수정
BlueBerrySoda May 4, 2024
d4985f9
fix: Swagger 경로 오류 수정
mclub4 May 4, 2024
38c231c
fix: nginx 테스트버전 추가
mclub4 May 4, 2024
9d42b79
Merge pull request #141 from kookmin-sw/refactor/be/#140-get-request
mclub4 May 4, 2024
92ff647
Merge branch 'develop-back' of github.com:kookmin-sw/capstone-2024-30…
mclub4 May 4, 2024
10ffe71
fix: gateway를 추가한 compose
mclub4 May 4, 2024
7c36b3e
Merge pull request #142 from kookmin-sw/feautre/be/#134-ApiGateway
BlueBerrySoda May 4, 2024
dab8d8b
fix: git action 스크립트 수정
mclub4 May 4, 2024
4df6fcc
Merge pull request #143 from kookmin-sw/feautre/be/#134-ApiGateway
mclub4 May 4, 2024
4794420
Update deploy.yml
BlueBerrySoda May 4, 2024
247f657
Update deploy.yml
BlueBerrySoda May 4, 2024
a194695
refactor: #146-answerCount 계산을 위한 SQL문 수정
BlueBerrySoda May 4, 2024
9c8bb80
Merge pull request #147 from kookmin-sw/refactor/be/#146-answer-count
BlueBerrySoda May 4, 2024
376f474
refactor: #151-DTO 기반 Fetch Join 문제 해결
BlueBerrySoda May 4, 2024
ce9a63e
refactor: #151-DTO 기반 Fetch Join 문제 해결
BlueBerrySoda May 4, 2024
67d645f
Merge pull request #152 from kookmin-sw/refactor/be/#151-dto-fetch-join
mclub4 May 5, 2024
d13a91c
refactor: #151-DTO기반 Fetch Join 문제 해결
BlueBerrySoda May 5, 2024
8a44303
Merge pull request #153 from kookmin-sw/refactor/be/#151-dto-fetch-join
BlueBerrySoda May 5, 2024
1eff481
fix: 챗봇과 gateway 연결작업
mclub4 May 5, 2024
234eb61
fix: action script 업데이트
mclub4 May 5, 2024
2577389
Merge branch 'develop-back' of github.com:kookmin-sw/capstone-2024-30…
mclub4 May 5, 2024
443f469
fix: Git Actions Script 의존관계 정리
mclub4 May 5, 2024
6f1a70f
fix: script 오타 수정
mclub4 May 5, 2024
dc17e96
fix: script 오타 수정
mclub4 May 5, 2024
4dda3bb
fix: script 오타 수정
mclub4 May 5, 2024
4267e4b
fix: 테스트용
mclub4 May 5, 2024
fd2e718
fix: script 오타 수정
mclub4 May 5, 2024
285928b
fix: test
mclub4 May 5, 2024
c9e839f
fix: 테스트용
mclub4 May 5, 2024
2ee9d4a
fix: 배포용 compose 추가
mclub4 May 5, 2024
c4cdfbe
fix: git flow 변경
mclub4 May 5, 2024
88b1fed
fix: git flow 변경
mclub4 May 5, 2024
817840e
fix: git flow 변경
mclub4 May 5, 2024
64ab73a
fix: image들 버전 변경
mclub4 May 5, 2024
0f6cba2
fix: image들 버전 변경
mclub4 May 5, 2024
fa478a8
Merge pull request #158 from kookmin-sw/feautre/be/#134-ApiGateway
mclub4 May 5, 2024
32a7bfa
fix: secret값들 변경
mclub4 May 5, 2024
5f3398c
Merge pull request #160 from kookmin-sw/feature/be/#159-ApiRateLimiter
mclub4 May 5, 2024
99ce300
fix: api 문서 접근 가능하게 변경
mclub4 May 5, 2024
7522b15
Merge pull request #162 from kookmin-sw/feature/be/#159-ApiRateLimiter
mclub4 May 5, 2024
b2fbdc7
refactor: #163-UUID입력 Header X-User-Id로 변경
BlueBerrySoda May 5, 2024
27b2feb
Merge pull request #164 from kookmin-sw/refactor/be/#163-uuid-xuser
BlueBerrySoda May 5, 2024
aa45398
Update GatewayConfig.java
BlueBerrySoda May 5, 2024
7ee9326
Update GatewayConfig.java
BlueBerrySoda May 5, 2024
c69704f
Update GatewayConfig.java
BlueBerrySoda May 5, 2024
45e67fc
refactor: #163-User ID 자료형 String으로 변경
BlueBerrySoda May 5, 2024
b680b97
refactor: #163-UUID 확인 과정을 수정 요청 Endpoint에 추가
BlueBerrySoda May 5, 2024
059df8a
Merge pull request #165 from kookmin-sw/refactor/be/#163-uuid-xuser
BlueBerrySoda May 5, 2024
2c2bfca
fix: #136-Unique 제거
BlueBerrySoda May 6, 2024
0993036
Merge branch 'develop-back' of https://github.com/kookmin-sw/capstone…
BlueBerrySoda May 6, 2024
93f68f9
Merge pull request #166 from kookmin-sw/refactor/be/#163-uuid-xuser
BlueBerrySoda May 6, 2024
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
75 changes: 62 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
run: |
echo DB_ENDPOINT=${{ secrets.DB_ENDPOINT }} >> .env
echo DB_NAME=${{ secrets.DB_NAME }} >> .env
echo DB_PORT=${{ secrets.DB_PORT }} >> .env
echo MYSQL_USERNAME=${{ secrets.MYSQL_USERNAME }} >> .env
echo MYSQL_PASSWORD=${{ secrets.MYSQL_PASSWORD }} >> .env
echo JWT_SECRET=${{ secrets.JWT_SECRET }} >> .env
Expand All @@ -34,39 +35,42 @@ jobs:
echo REDIS_PORT=${{ secrets.REDIS_PORT }} >> .env
echo S3_ACCESS_KEY=${{ secrets.S3_ACCESS_KEY }} >> .env
echo S3_SECRET_KEY=${{ secrets.S3_SECRET_KEY }} >> .env
echo S3_SECRET_KEY=${{ secrets.SECRET_KEY_BASE }} >> .env
echo S3_SECRET_KEY=${{ secrets.SERVER_NAME }} >> .env
echo SECRET_KEY_BASE=${{ secrets.SECRET_KEY_BASE }} >> .env
echo SERVER_NAME=${{ secrets.SERVER_NAME }} >> .env
echo SERVER_URL=${{ secrets.SERVER_URL }} >> .env
echo CHATBOT_URL=${{ secrets.CHATBOT_URL }} >> .env

- name: Copy .env to EC2
uses: appleboy/scp-action@master
with:
host: ${{ secrets.AWS_HOST }}
username: ubuntu
key: ${{ secrets.AWS_KEY }}
source: "/github/workspace/.env"
target: "/home/ubuntu/capstone"
source: "./.env"
target: "capstone"

- name: Copy docker-compose.yaml to EC2
uses: appleboy/scp-action@master
with:
host: ${{ secrets.AWS_HOST }}
username: ubuntu
key: ${{ secrets.AWS_KEY }}
source: "/github/workspace/back/docker-compose.yml"
target: "/home/ubuntu/capstone"
source: "./docker-compose.yml"
target: "capstone"

- name: action-slack
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
author_name: PetBuddy Github
author_name: 외국민
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()

build-spring:
runs-on: ubuntu-latest
needs: setup-env

steps:
- name: Checkout
Expand Down Expand Up @@ -94,14 +98,15 @@ jobs:
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
author_name: PetBuddy Github
author_name: 외국민
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()

build-nginx:
runs-on: ubuntu-latest
needs: setup-env

steps:
- name: Checkout
Expand Down Expand Up @@ -129,14 +134,15 @@ jobs:
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
author_name: PetBuddy Github
author_name: 외국민
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()

build-ruby:
runs-on: ubuntu-latest
needs: setup-env

steps:
- name: Checkout
Expand Down Expand Up @@ -164,15 +170,57 @@ jobs:
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
author_name: PetBuddy Github
author_name: 외국민
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()

build-gateway:
runs-on: ubuntu-latest
needs: setup-env

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push Spring
uses: docker/build-push-action@v5
with:
context: ./back-gateway
push: true
tags: ${{ secrets.DOCKER_REPO }}/spring-gateway:latest
cache-from: type=gha
cache-to: type=gha,mode=max

- name: action-slack
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
author_name: 외국민
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()

deploy:
runs-on : ubuntu-latest
needs: [build-spring, build-nginx, build-ruby]
needs: [build-spring, build-nginx, build-ruby, build-gateway]

steps:
- name: executing remote ssh commands using password
Expand All @@ -189,15 +237,16 @@ jobs:
sudo docker pull ${{ secrets.DOCKER_REPO }}/spring:latest
sudo docker pull ${{ secrets.DOCKER_REPO }}/nginx:latest
sudo docker pull ${{ secrets.DOCKER_REPO }}/ruby:latest

sudo docker pull ${{ secrets.DOCKER_REPO }}/spring-gateway:latest

sudo docker compose -f capstone/docker-compose.yml up -d
sudo docker image prune -f

- name: action-slack
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
author_name: PetBuddy Github
author_name: 외국민
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
Expand Down
11 changes: 11 additions & 0 deletions back-chat/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,14 @@

.env
env.bashrc
.idea

# 디폴트 무시된 파일
.idea/dataSources.xml
.idea/vcs.xml
.idea/workspace.xml
.idea/.gitignore
.idea/dataSources
.idea/modules.xml
.idea/dataSources.local.xml
.idea/back-chat.iml
8 changes: 0 additions & 8 deletions back-chat/.idea/.gitignore

This file was deleted.

Loading