Skip to content

Commit

Permalink
merge dev_android
Browse files Browse the repository at this point in the history
  • Loading branch information
briandr97 committed Nov 6, 2023
1 parent 989f4ea commit 340d9a8
Show file tree
Hide file tree
Showing 200 changed files with 5,054 additions and 1,609 deletions.
Binary file added .DS_Store
Binary file not shown.
54 changes: 43 additions & 11 deletions .github/workflows/backend_dev_merge_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,54 @@ on:
- dev_backend

jobs:
deploy:
runs-on: naaga
github_actions_setting:
runs-on: ubuntu-latest

steps:
- name: change permission
run: |
sudo chown -R ubuntu:ubuntu /home/ubuntu/actions-runner/naaga/2023-naaga/2023-naaga
- name: checkout
- name: 📂 프로젝트 파일 가져오는 중... 📂
uses: actions/checkout@v3
with:
submodules: true
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: remove

- name: ☕️ 깃허브 액션에 JDK 17 적용시키는 중... ☕️
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'

- name: 🐘 Gradle 세팅 중... 🐘
uses: gradle/[email protected]

- name: ⚙️ Gradle 로 JAR 파일 테스트 및 빌드 중... ⚙️
run: |
cd backend
./gradlew clean bootJar -Dspring.profiles.active=test
- name: 🐳 도커 세팅 중... 🐳
uses: docker/[email protected]

- name: 🐳 도커 허브에 로그인 중... 🐳
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_ACCESSTOKEN }}

- name: 🐳 도커 이미지 빌드 중... 🐳
run: |
sudo rm -rf /home/ubuntu/2023-naaga
- name: deploy
cd backend
docker build --platform linux/arm64/v8 -t ${{ secrets.DOCKERHUB_REPOSITORY }}/${{ secrets.DOCKERHUB_APPNAME }} -f Dockerfile-dev .
- name: 🐳 도커 허브에 Push 중... 🐳
run: docker push ${{ secrets.DOCKERHUB_REPOSITORY }}/${{ secrets.DOCKERHUB_APPNAME }}

naaga_dev_ec2_deploy:
needs: github_actions_setting
runs-on: naaga

steps:
- name: 🙏 쉘 스크립트 실행 중 ... 🙏
run: |
sudo cp -r /home/ubuntu/actions-runner/naaga/2023-naaga/2023-naaga /home/ubuntu
cd /home/ubuntu
sudo ./deploy.sh
sudo ./deploy_new.sh
79 changes: 39 additions & 40 deletions .github/workflows/backend_prod_merge_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,56 +6,55 @@ on:
- main
paths:
- backend/**

jobs:
deploy:
runs-on: naaga
github_actions_setting:
runs-on: ubuntu-latest

steps:
- name: change permission
run: |
sudo chown -R ubuntu:ubuntu /home/ubuntu/actions-runner/naaga/2023-naaga/2023-naaga
- name: checkout
- name: 📂 프로젝트 파일 가져오는 중... 📂
uses: actions/checkout@v3
with:
submodules: true
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: project remove
run: |
sudo rm -rf /home/ubuntu/prod/2023-naaga
- name: project copy
run: |
sudo cp -r /home/ubuntu/actions-runner/naaga/2023-naaga/2023-naaga /home/ubuntu/prod

- name: build
- name: ☕️ 깃허브 액션에 JDK 17 적용시키는 중... ☕️
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'

- name: 🐘 Gradle 세팅 중... 🐘
uses: gradle/[email protected]

- name: ⚙️ Gradle 로 JAR 파일 테스트 및 빌드 중... ⚙️
run: |
cd /home/ubuntu/prod/2023-naaga/backend
sudo chmod +x ./gradlew
sudo ./gradlew clean bootJar
- name: transfer & run
cd backend
./gradlew clean bootJar -Dspring.profiles.active=test
- name: 🐳 도커 세팅 중... 🐳
uses: docker/[email protected]

- name: 🐳 도커 허브에 로그인 중... 🐳
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_ACCESSTOKEN }}

- name: 🐳 도커 이미지 빌드 중... 🐳
run: |
cd /home/ubuntu/prod
chmod +x ./deploy_prod.sh
sudo ./deploy_prod.sh
cd backend
docker build --platform linux/arm64/v8 -t ${{ secrets.DOCKERHUB_REPOSITORY }}/${{ secrets.DOCKERHUB_APPNAME }} -f Dockerfile-prod .
sync-dev_backend:
needs: deploy
- name: 🐳 도커 허브에 Push 중... 🐳
run: docker push ${{ secrets.DOCKERHUB_REPOSITORY }}/${{ secrets.DOCKERHUB_APPNAME }}

runs-on: ubuntu-latest
naaga_prod_ec2_deploy:
needs: github_actions_setting
runs-on: naaga

steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: main

- name: merge main -> dev_backend
uses: devmasx/merge-branch@master
with:
type: now
from_branch: main
target_branch: dev_backend
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: 🙏 쉘 스크립트 실행 중 ... 🙏
run: |
cd /home/ubuntu/prod
sudo ./deploy_prod.sh
76 changes: 38 additions & 38 deletions .github/workflows/backend_rel_merge_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,53 +8,53 @@ on:
- backend/**

jobs:
deploy:
runs-on: naaga
github_actions_setting:
runs-on: ubuntu-latest

steps:
- name: change permission
run: |
sudo chown -R ubuntu:ubuntu /home/ubuntu/actions-runner/naaga/2023-naaga/2023-naaga
- name: checkout
- name: 📂 프로젝트 파일 가져오는 중... 📂
uses: actions/checkout@v3
with:
submodules: true
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: project remove
run: |
sudo rm -rf /home/ubuntu/prod/2023-naaga
- name: project copy
run: |
sudo cp -r /home/ubuntu/actions-runner/naaga/2023-naaga/2023-naaga /home/ubuntu/prod

- name: build
- name: ☕️ 깃허브 액션에 JDK 17 적용시키는 중... ☕️
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'

- name: 🐘 Gradle 세팅 중... 🐘
uses: gradle/[email protected]

- name: ⚙️ Gradle 로 JAR 파일 테스트 및 빌드 중... ⚙️
run: |
cd /home/ubuntu/prod/2023-naaga/backend
sudo chmod +x ./gradlew
sudo ./gradlew clean bootJar
- name: transfer & run
cd backend
./gradlew clean bootJar -Dspring.profiles.active=test
- name: 🐳 도커 세팅 중... 🐳
uses: docker/[email protected]

- name: 🐳 도커 허브에 로그인 중... 🐳
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_ACCESSTOKEN }}

- name: 🐳 도커 이미지 빌드 중... 🐳
run: |
cd /home/ubuntu/prod
chmod +x ./deploy_prod.sh
sudo ./deploy_prod.sh
cd backend
docker build --platform linux/arm64/v8 -t ${{ secrets.DOCKERHUB_REPOSITORY }}/${{ secrets.DOCKERHUB_APPNAME }} -f Dockerfile-prod .
sync-dev_backend:
needs: deploy
- name: 🐳 도커 허브에 Push 중... 🐳
run: docker push ${{ secrets.DOCKERHUB_REPOSITORY }}/${{ secrets.DOCKERHUB_APPNAME }}

runs-on: ubuntu-latest
naaga_prod_ec2_deploy:
needs: github_actions_setting
runs-on: naaga

steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: main

- name: merge release -> dev_backend
uses: devmasx/merge-branch@master
with:
type: now
target_branch: dev_backend
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: 🙏 쉘 스크립트 실행 중 ... 🙏
run: |
cd /home/ubuntu/prod
sudo ./deploy_prod.sh
8 changes: 8 additions & 0 deletions .idea/vcs.xml

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

116 changes: 116 additions & 0 deletions .idea/workspace.xml

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

16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
![제목](etc/images/header.png)

## 💌 나아가로부터의 초대장이 도착했습니다

반복되는 인스타 피드를 보고, 게임을 하며 보내는 일상이 지루하지 않으시나요?
공부와 일에 치여 실내에서 보내는 시간이 많을 텐데요. 작은 화면 속을 벗어나 현실 세계의 경험을 해보고 싶지 않으신가요?

그런 당신을 ‘나아가’로 초대합니다.

## 🚶🏻 추리와 발걸음의 만남
나아가는 현실 세계를 누비며 진행되는 추리 게임입니다. 게임을 시작하면, 당신 주변 어딘가의 사진이 제공됩니다. 사진이 알쏭달쏭하여 그곳이 어딘지 알아맞히기 어렵겠지만, 우선 발걸음을 옮겨보세요.


<a href="https://play.google.com/store/apps/details?id=com.now.naaga&pcampaignid=web_share"><img src="etc/images/google play store.png"/></a>

![상세 페이지](etc/images/service%20intro.png)
Loading

0 comments on commit 340d9a8

Please sign in to comment.