-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev-fe' of https://github.com/woowacourse-teams/2024-baโฆ
โฆng-ggood into fix/935-autologin
- Loading branch information
Showing
253 changed files
with
15,487 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: backend-ci | ||
|
||
on: | ||
pull_request: | ||
branches: [ "main", "dev", "dev-be" ] | ||
paths: 'backend/**' | ||
|
||
defaults: | ||
run: | ||
working-directory: backend/bang-ggood | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v3 | ||
with: | ||
gradle-version: 8.8 | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Write application.yml | ||
env: | ||
APPLICATION_YML: ${{ secrets.APPLICATION_YML }} | ||
APPLICATION_LOCAL_YML: ${{ secrets.APPLICATION_LOCAL_YML }} | ||
APPLICATION_TEST_YML: ${{ secrets.APPLICATION_TEST_YML }} | ||
APPLICATION_READ_WRITE_TEST_YML: ${{ secrets.APPLICATION_READ_WRITE_TEST_YML }} | ||
|
||
run: | | ||
echo "${APPLICATION_YML}" > src/test/resources/application.yml | ||
echo "${APPLICATION_LOCAL_YML}" > src/test/resources/application-local.yml | ||
echo "${APPLICATION_TEST_YML}" > src/test/resources/application-test.yml | ||
echo "${APPLICATION_READ_WRITE_TEST_YML}" > src/test/resources/application-read-write-test.yml | ||
- name: Build with Gradle | ||
run: ./gradlew clean build | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
name: backend-dev-cd | ||
|
||
on: | ||
pull_request: | ||
branches: [ "dev" ] | ||
types: [closed] | ||
|
||
jobs: | ||
build: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v3 | ||
with: | ||
gradle-version: 8.8 | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x backend/bang-ggood/gradlew | ||
|
||
- name: Write application.yml | ||
env: | ||
APPLICATION_YML: ${{ secrets.APPLICATION_YML }} | ||
APPLICATION_DEV_YML: ${{ secrets.APPLICATION_DEV_YML }} | ||
APPLICATION_TEST_YML: ${{ secrets.APPLICATION_TEST_YML }} | ||
APPLICATION_READ_WRITE_TEST_YML: ${{ secrets.APPLICATION_READ_WRITE_TEST_YML }} | ||
|
||
run: | | ||
echo "${APPLICATION_YML}" > backend/bang-ggood/src/main/resources/application.yml | ||
echo "${APPLICATION_DEV_YML}" > backend/bang-ggood/src/main/resources/application-dev.yml | ||
echo "${APPLICATION_TEST_YML}" > backend/bang-ggood/src/test/resources/application-test.yml | ||
echo "${APPLICATION_READ_WRITE_TEST_YML}" > backend/bang-ggood/src/test/resources/application-read-write-test.yml | ||
- name: Build with Gradle | ||
run: ./gradlew clean build | ||
working-directory: backend/bang-ggood | ||
|
||
- name: Upload build artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
working-directory: backend/bang-ggood | ||
name: bang-ggood-be-develop-jar | ||
path: ./**/*.jar | ||
|
||
deploy: | ||
needs: build | ||
runs-on: bang-ggood-dev | ||
steps: | ||
- name: change permission | ||
run: sudo chown -R ubuntu:ubuntu /home/ubuntu/actions-runner/_work/2024-bang-ggood | ||
|
||
- name: Download build artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: bang-ggood-be-develop-jar | ||
|
||
- name: Create unhealth_flag file | ||
run: echo "unhealth" | sudo tee /etc/nginx/sites-available/unhealth_flag.txt > /dev/null | ||
|
||
|
||
- name: Sleep for 30 seconds | ||
run: sleep 30 | ||
|
||
- name: Turn off the server 8080 if runs | ||
run: sudo fuser -k -n tcp 8080 || true | ||
|
||
- name: Start server | ||
run: sudo nohup java -jar -Dspring.profiles.active=dev -Duser.timezone=Asia/Seoul ./backend/bang-ggood/build/libs/*SNAPSHOT.jar > /home/ubuntu/actions-runner/server.log 2>&1 & | ||
|
||
- name: Delete unhealth_flag file | ||
run: sudo rm /etc/nginx/sites-available/unhealth_flag.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
name: backend-prod-cd | ||
|
||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
types: [closed] | ||
|
||
jobs: | ||
build: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v3 | ||
with: | ||
gradle-version: 8.8 | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x backend/bang-ggood/gradlew | ||
|
||
- name: Write application.yml | ||
env: | ||
APPLICATION_YML: ${{ secrets.APPLICATION_YML }} | ||
APPLICATION_PROD_YML: ${{ secrets.APPLICATION_PROD_YML }} | ||
APPLICATION_TEST_YML: ${{ secrets.APPLICATION_TEST_YML }} | ||
APPLICATION_READ_WRITE_TEST_YML: ${{ secrets.APPLICATION_READ_WRITE_TEST_YML }} | ||
|
||
run: | | ||
echo "${APPLICATION_YML}" > backend/bang-ggood/src/main/resources/application.yml | ||
echo "${APPLICATION_PROD_YML}" > backend/bang-ggood/src/main/resources/application-prod.yml | ||
echo "${APPLICATION_TEST_YML}" > backend/bang-ggood/src/test/resources/application-test.yml | ||
echo "${APPLICATION_READ_WRITE_TEST_YML}" > backend/bang-ggood/src/test/resources/application-read-write-test.yml | ||
- name: Build with Gradle | ||
run: ./gradlew clean build | ||
working-directory: backend/bang-ggood | ||
|
||
- name: Upload build artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
working-directory: backend/bang-ggood | ||
name: bang-ggood-be-develop-jar | ||
path: ./**/*.jar | ||
|
||
deploy1: | ||
needs: build | ||
runs-on: bang-ggood-prod1 | ||
steps: | ||
- name: Change permission | ||
run: sudo chown -R ubuntu:ubuntu /home/ubuntu/actions-runner/_work/2024-bang-ggood | ||
|
||
- name: Download build artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: bang-ggood-be-develop-jar | ||
|
||
- name: Turn off the server 8080 if it runs | ||
run: sudo fuser -k -n tcp 8080 || true | ||
|
||
- name: Start server | ||
run: sudo nohup java -jar -Dspring.profiles.active=prod -Duser.timezone=Asia/Seoul ./backend/bang-ggood/build/libs/*SNAPSHOT.jar > /home/ubuntu/actions-runner/server.log 2>&1 & | ||
|
||
deploy2: | ||
needs: deploy1 | ||
runs-on: bang-ggood-prod2 | ||
steps: | ||
- name: Change permission | ||
run: sudo chown -R ubuntu:ubuntu /home/ubuntu/actions-runner/_work/2024-bang-ggood | ||
|
||
- name: Download build artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: bang-ggood-be-develop-jar | ||
|
||
- name: Turn off the server 8080 if it runs | ||
run: sudo fuser -k -n tcp 8080 || true | ||
|
||
- name: Start server | ||
run: sudo nohup java -jar -Dspring.profiles.active=prod -Duser.timezone=Asia/Seoul ./backend/bang-ggood/build/libs/*SNAPSHOT.jar > /home/ubuntu/actions-runner/server.log 2>&1 & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Discord PR | ||
|
||
on: | ||
pull_request: | ||
branches: ["dev-be"] | ||
paths: 'backend/**' | ||
|
||
jobs: | ||
create-issue: | ||
name: Discord notification | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Send PR | ||
uses: Ilshidur/[email protected] | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }} | ||
DISCORD_USERNAME: Bang_GGood_Master | ||
DISCORD_EMBEDS: > | ||
[ | ||
{ | ||
"title": "๋๋~ ๋ฐฉ ๋ฆฌ๋ชจ๋ธ๋ง ์์ฒญ์ด ์์ด์!๐ \n${{ github.event.pull_request.title }}", | ||
"color": 16777123, | ||
"description": "${{ github.event.pull_request.html_url }}", | ||
"fields": [ | ||
{ | ||
"name": "Pull Request Number", | ||
"value": "#${{ github.event.pull_request.number }}", | ||
"inline": true | ||
}, | ||
{ | ||
"name": "Author", | ||
"value": "${{ github.event.pull_request.user.login }}", | ||
"inline": true | ||
}, | ||
{ | ||
"name": "Reviewers", | ||
"value": "${{ join(github.event.pull_request.requested_reviewers.*.login, ', ') }}", | ||
"inline": false | ||
} | ||
] | ||
} | ||
] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# ๋ฐฉ๋; ๋ฐฉ ๊ตฌํ๊ธฐ ๋, ๊ทธ๋์ ๋ฐฉ๊ธ :) | ||
|
||
![แแ กแผแแ กแผแแ ตแแ ขแแ ฅ](https://github.com/user-attachments/assets/d8615115-6a82-444b-bbb4-2c03a554884e) | ||
|
||
์ ์ถ๋ฐ์ ์ํด ์์ง์ ๊ตฌํด์ผ ํ๋ ๋น์ ! | ||
๋ฐฉ์ ๊ตฌํ ๊ฒฝํ๊ณผ ์ง์์ด ๋ถ์กฑํ ์์ทจ ์ด๋ณด๋ผ๋ฉด, ์ด๋ป๊ฒ ๋ฐฉ์ ๊ตฌํด์ผ ํ ์ง ๋ง๋งํ ์ง๋ ๋ชฐ๋ผ์. | ||
|
||
๋ฐฉ์ ๋ณด๋ ์๊ฐ์ **๋จ 10๋ถ!** | ||
|
||
โ์ด๋์๋ถํฐ ๋ด์ผ ํ์ง? ๋ฌด์์ ๋ด์ผ ๋์ง?โ | ||
โ๋ด ๋์๋ ๋ค ์ข์๋ณด์ด๋๋ฐ?โ | ||
โ๋ฐฉ๊ธ ๋ดค๋ ์ง๋ค์ ๋ค ๊ธฐ์ตํ๊ธฐ ํ๋ ๋ฐ.." | ||
|
||
**๋ฐฉ๋**์ ์ด๋ฐ ๊ณ ๋ฏผํ๋ ์์ทจ ์ด๋ณด๋ค์ ์ํด, | ||
โ๏ธ ๋ฐฉ์ ๋๋ฌ๋ณผ ๋ ๊น๋นกํ ์ ์๋, ์ ์ฌํ ์ดํด๋ด์ผ ํ ๊ฒ๋ค์ **์ฒดํฌ๋ฆฌ์คํธ**๋ก ์๋ ค ๋๋ ค์. | ||
โ๏ธ ์ฌ๋ฌ๋ถ์ด ์ค์ํ๊ฒ ์๊ฐํ๋ **์ง๋ฌธ๋ง ๋ชจ์**์ ๋๋ง์ ์ฒดํฌ๋ฆฌ์คํธ๋ฅผ ๋ง๋ค ์ ์์ด์. | ||
โ๏ธ ์ฌ๋ฌ ๋ฐฉ์ ๋์๋ณด๋ฉฐ ์์ฑํ๋ ์ฒดํฌ๋ฆฌ์คํธ๋ค์ ๋น๊ตํ์ฌ ์ฌ๋ฌ๋ถ์๊ฒ **์ต์ ์ ๋ฐฉ์ ์ถ์ฒ**ํด๋๋ ค์. | ||
|
||
๋๋ง์ ์ฒดํฌ๋ฆฌ์คํธ๋ก ์ต์ ์ ๋ฐฉ์ ์ฐพ์ ๋๊ฐ๋ ๊ณผ์ , ๋ฐฉ๋์ด ํจ๊ปํ ๊ฒ์. | ||
์์ทจ๋ฐฉ์์ ๋ฐฉ๊ธ ์์ ์ ์๊ฒ, ๋ฐฉ๋์ ์ฌ์ฉํด ๋ณด์ธ์!ย โบ๏ธ |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
HELP.md | ||
.gradle | ||
build/ | ||
!gradle/wrapper/gradle-wrapper.jar | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
|
||
### STS ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
bin/ | ||
!**/src/main/**/bin/ | ||
!**/src/test/**/bin/ | ||
|
||
### IntelliJ IDEA ### | ||
src/main/resources/*.yml | ||
src/test/resources/*.yml | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
out/ | ||
!**/src/main/**/out/ | ||
!**/src/test/**/out/ | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
|
||
### VS Code ### | ||
.vscode/ |
Oops, something went wrong.