Skip to content

Commit

Permalink
Merge branch 'main' into iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyukjin committed Jun 14, 2024
2 parents 50e665c + a944dce commit 8268ec0
Show file tree
Hide file tree
Showing 300 changed files with 27,289 additions and 10 deletions.
Binary file modified .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.h5 filter=lfs diff=lfs merge=lfs -text
Binary file added .github/.DS_Store
Binary file not shown.
58 changes: 58 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Build and Deploy to EC2

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

defaults:
run:
shell: bash

env:
AWS_S3_BUCKET: 4k-backend-bucket
AWS_CODE_DEPLOY_APPLICATION: 4K-Backend-CD
AWS_CODE_DEPLOY_GROUP: 4K-Backend-CD-Group

jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2

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

- name: Run chmod to make gradlew executable
run: chmod +x ./BackEnd/gradlew

- name: Build Project and Test
working-directory: BackEnd
run: ./gradlew build test

- name: Setup MySQL
uses: mirromutth/mysql-action@v1.1
with:
mysql database: 'ringodb'
mysql user: ${MYSQL_DATABASE_USERNAME}
mysql password: ${MYSQL_DATABASE_PASSWORD}

- name: Configure AWS credential
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: ap-northeast-2
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: Upload to S3
working-directory: ./BackEnd
run: aws deploy push --application-name ${{ env.AWS_CODE_DEPLOY_APPLICATION }} --ignore-hidden-files --s3-location s3://${{ env.AWS_S3_BUCKET }}/4K-Backend-EC2/$GITHUB_SHA.zip --source .

- name: Code Deploy to EC2
working-directory: ./BackEnd
run: aws deploy create-deployment --application-name ${{ env.AWS_CODE_DEPLOY_APPLICATION }} --deployment-config-name CodeDeployDefault.AllAtOnce --deployment-group-name ${{ env.AWS_CODE_DEPLOY_GROUP }} --s3-location bucket=${{ env.AWS_S3_BUCKET }},key=4K-Backend-EC2/$GITHUB_SHA.zip,bundleType=zip

43 changes: 43 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,45 @@
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 ###
.idea
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/


### SECRET KEY INFO ###
BackEnd/src/main/resources/firebase/webrtc.json
BackEnd/src/main/resources/ssl/keystore.p12

### Xcode ###
*.xcuserstate
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/4K.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/modules/webChat.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8268ec0

Please sign in to comment.