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

[BE] 운영 서버 배포 #424

Closed
wants to merge 58 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
568ffc7
remove: 클라이언트 코드 삭제
3Juhwan Jul 30, 2024
7e2dd3d
feat: 이슈, PR 템플릿 추가 (#160)
Arachneee Jul 30, 2024
fb3acc5
refactor: CD workflow main, develop 분리 (#163)
kunsanglee Jul 30, 2024
fda3f0d
feat: 로그 모니터링 환경 구축 (#169)
khabh Jul 31, 2024
0739181
feat: 예외메시지 구체화 (#161)
Arachneee Aug 1, 2024
d381d9d
refactor: 액션 이력 조회 리펙토링 (#141)
Arachneee Aug 4, 2024
2768886
feat: 멤버 액션 삭제 기능 구현 (#181)
kunsanglee Aug 4, 2024
51c5c89
feat: ERD svg 생성하여 스키마 변경에 대한 이력 관리 (#190)
kunsanglee Aug 4, 2024
3f93f2d
feat: 지출 액션 수정 기능 구현 (#180)
Arachneee Aug 4, 2024
24078cc
feat: 지출 액션 삭제 기능 구현 (#179)
khabh Aug 4, 2024
b76cf53
feat: 행사의 전체 참여자 중 특정 참여자의 멤버 액션을 모두 삭제하는 기능 구현 (#185)
kunsanglee Aug 4, 2024
a7c942e
feat: 행사에 참여한 전체 인원 조회 기능 구현 (#195)
3Juhwan Aug 5, 2024
135fdd6
feat: 행사 참여 인원 이름 변경 기능 구현 (#197)
khabh Aug 5, 2024
475ca1b
refactor: API 엔드포인트 수정 (#200)
khabh Aug 5, 2024
b2258ac
feat: 테스트 데이터 클리너 구현 (#199)
3Juhwan Aug 5, 2024
7c6f2c4
feat: 행사 관리자 비밀번호 추가 (#213)
Arachneee Aug 7, 2024
7bd9420
fix: 쿠키 인증 버그 수정 (#222)
Arachneee Aug 7, 2024
79bd41c
fix: 쿠키 인증 버그 수정 (#235)
Arachneee Aug 7, 2024
63c93df
refactor: 에러 코드 재정의 (#227)
3Juhwan Aug 8, 2024
3e1c52f
fix: 쿠키 저장 오류 2차 수정 (#237)
Arachneee Aug 8, 2024
ae82699
feat: REST docs를 통한 문서화 (#238)
khabh Aug 8, 2024
fae2b74
fix: JWT 유효기간 만료 버그 수정 (#248)
Arachneee Aug 8, 2024
940b2db
feat: 관리자 권한 확인 API 구현 (#259)
3Juhwan Aug 8, 2024
f84c194
fix: 참여자 삭제 서비스 메서드에 Transactional 추가 (#265)
kunsanglee Aug 8, 2024
927d5d8
refactor: application.yml metrics 추가 (#269)
kunsanglee Aug 9, 2024
18f132c
feat: CI/CD 숙제 (#290)
3Juhwan Aug 9, 2024
97fc7fb
feat: CI/CD 숙제 (#291)
3Juhwan Aug 9, 2024
1feb2d6
refactor: 행사 참여 인원 이름 변경 api 수정 (#268)
Arachneee Aug 9, 2024
921410d
fix: rest docs 저장 파일 위치 변경 (#273)
Arachneee Aug 9, 2024
63fbbc9
fix: 어드민 권한 확인 불가 버그 수정 (#275)
Arachneee Aug 9, 2024
a8c9d01
fix: 행사 로그인 불가 버그 수정 (#283)
Arachneee Aug 9, 2024
f54b825
fix: CI/CD 트리거 조건에서 server 폴더 조건 제거 (#308)
Arachneee Aug 12, 2024
12485ef
feat: pr 머지시 issue close 기능 추가 (#309)
Arachneee Aug 12, 2024
15ab738
refactor: yml, Dockerfile TZ Asia/Seoul 적용 (#305)
kunsanglee Aug 12, 2024
85add2d
refactor: actuator health 엔드포인트 설정 변경 (#303)
kunsanglee Aug 12, 2024
be83b89
feat: 서버 로그 볼륨 마운트 설정 (#300)
Arachneee Aug 12, 2024
901c25a
feat: LogBack 롤링 정책 수정, 로그 레벨에 따른 분리 (#332)
3Juhwan Aug 13, 2024
b8fc84e
fix: 서브 모듈 프로파일 오타 수정 (#334)
3Juhwan Aug 13, 2024
4695532
refactor: 현재 참여 인원 목록 조회 API 반환 형식 수정 (#361)
khabh Aug 16, 2024
92dd8ce
feat: BillActionDetail 베이스 코드 생성 (#363)
Arachneee Aug 16, 2024
68be926
feat: 액션 이력 조회 v2 기능 구현 (#375)
Arachneee Aug 16, 2024
45f147d
[BE] 행사 참여 인원 또는 지출 총액 변동시 차등 정산 초기화 기능 구현 (#370)
Arachneee Aug 16, 2024
55fb094
feat: 요구사항 변경에 따른 지출 내역 추가, 지출 액션 삭제 API 수정 (#373)
3Juhwan Aug 19, 2024
64d9ac8
refactor: 참여자별 정산 현황 조회 및 액션 이력 조회 수정 (#377)
khabh Aug 19, 2024
b167550
feat: 참여자 개별 지출 금액 수정 및 조회 기능 구현 (#378)
kunsanglee Aug 19, 2024
4dbc207
feat: 에러를 재현할 수 있는 로그로 수정 (#392)
3Juhwan Aug 19, 2024
8700259
feat: 예외 처리 및 로깅 형식 수정 (#394)
3Juhwan Aug 19, 2024
07f4bf3
feat: 예외 처리 및 로깅 형식 수정 (#395)
3Juhwan Aug 19, 2024
90daed5
refactor: BillActionDetail isFixed 추가 (#405)
kunsanglee Aug 20, 2024
5974939
fix: 로깅 적용 후 예외 응답 불가 버그 수정 (#413)
Arachneee Aug 20, 2024
39efc69
feat: 액션 이력 조회 stepName 추가 (#420)
Arachneee Aug 21, 2024
be175d2
feat: 이슈, PR 템플릿 추가 (#160) (#426)
Arachneee Aug 21, 2024
e96f7c8
Merge branch 'main' into be-dev
Arachneee Aug 21, 2024
a432656
fix: BillAction 수정시 BillDetail 초기화 안되는 버그 수정
Arachneee Aug 21, 2024
de5e7ce
fix: BillAction 수정시 BillDetail 초기화 안되는 버그 수정
Arachneee Aug 21, 2024
1879b92
Merge remote-tracking branch 'origin/be-dev' into be-dev
Arachneee Aug 21, 2024
084fb5f
fix: BillAction 수정시 BillDetail 초기화 안되는 버그 수정
Arachneee Aug 21, 2024
44ff15d
docs: pr issue close 삭제
Arachneee Aug 21, 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
72 changes: 72 additions & 0 deletions .github/workflows/backend-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: backend-push

on:
push:
branches: [ "be-dev" ]

jobs:
build:
runs-on: [ self-hosted, backend-dev ]

defaults:
run:
shell: bash
working-directory: ./server

permissions:
contents: read

steps:
- name: CheckOut
uses: actions/checkout@v4
with:
token: ${{secrets.CONFIG_SUBMODULE_TOKEN}}
submodules: true

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Test with Gradle Wrapper
run: ./gradlew clean build

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

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

- name: Build and push
run: |
docker buildx build --platform linux/arm64 -t \
${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_IMAGE_BE_DEV }} --push .

deploy:
needs: build
runs-on: [ self-hosted, backend-dev ]
steps:
- name: Docker remove
run: |
CONTAINER_IDS=$(sudo docker ps -qa)
if [ -n "$CONTAINER_IDS" ]; then
sudo docker rm -f $CONTAINER_IDS
else
echo "No running containers found."
fi

- name: Docker Image pull
run: sudo docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_IMAGE_BE_DEV }}

- name: Docker run
run: sudo docker run -d -p 8080:8080 -e SPRING_PROFILES_ACTIVE=dev -v log-volume:/app/logs --name haengdong-backend ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_IMAGE_BE_DEV }}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: backend-push

on:
push:
branches: [ "main", "develop" ]
branches: [ "main" ]
paths:
- 'server/**'

Expand Down Expand Up @@ -52,11 +52,11 @@ jobs:
- name: Build and push
run: |
docker buildx build --platform linux/arm64 -t \
${{ secrets.DOCKER_USERNAME }}/haengdong-backend-dev --push .
${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_IMAGE_BE_PROD }} --push .

deploy:
needs: build
runs-on: self-hosted
runs-on: [ self-hosted, backend-prod ]
steps:
- name: Docker remove
run: |
Expand All @@ -68,7 +68,7 @@ jobs:
fi

- name: Docker Image pull
run: sudo docker pull ${{ secrets.DOCKER_USERNAME }}/haengdong-backend-dev
run: sudo docker pull ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_IMAGE_BE_PROD }}

- name: Docker run
run: sudo docker run -d -p 8080:8080 --name haengdong-backend-dev ${{ secrets.DOCKER_USERNAME }}/haengdong-backend-dev
run: sudo docker run -d -p 8080:8080 -e SPRING_PROFILES_ACTIVE=prod -v log-volume:/app/logs --name haengdong-backend ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_IMAGE_BE_PROD }}
6 changes: 2 additions & 4 deletions .github/workflows/backend-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ name: backend-pull-request

on:
pull_request:
branches: [ "main", "develop" ]
paths:
- 'server/**'
branches: [ "main", "be-dev" ]

jobs:
build:
runs-on: ubuntu-latest
runs-on: [ ubuntu-latest ]

defaults:
run:
Expand Down
61 changes: 0 additions & 61 deletions .github/workflows/design-pull-request.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/frontend-pull-request.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[submodule "server/src/main/resources/config"]
branch = main
path = server/src/main/resources/config
url = https://github.com/woowacourse-teams/2024-haeng-dong-config.git
12 changes: 0 additions & 12 deletions HDesign/.gitignore

This file was deleted.

7 changes: 0 additions & 7 deletions HDesign/.npmignore

This file was deleted.

2 changes: 0 additions & 2 deletions HDesign/.npmrc

This file was deleted.

12 changes: 0 additions & 12 deletions HDesign/.prettierrc

This file was deleted.

46 changes: 0 additions & 46 deletions HDesign/.storybook/main.ts

This file was deleted.

41 changes: 0 additions & 41 deletions HDesign/.storybook/preview.tsx

This file was deleted.

Loading
Loading