-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
53 changed files
with
8,524 additions
and
1,254 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 |
---|---|---|
@@ -1,44 +1,42 @@ | ||
name: GCP CI/CD | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
build: | ||
if_merged: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: executing remote ssh commands using ssh key | ||
- if: github.event.pull_request.merged == true && github.head_ref == 'feature/Backend' | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.HOST }} | ||
username: ${{ secrets.USERNAME }} | ||
key: ${{ secrets.SSH_KEY }} | ||
#passphrase: ${{ secrets.PASSPHRASE }} | ||
passphrase: ${{ secrets.PASSPHRASE }} | ||
port: 22 | ||
script: | | ||
cd ${{ secrets.PWD }} | ||
git pull https://${{ secrets.GIT_TOKEN }}:[email protected]/2022-Sejong-Creative-Semester/Traffic-Information-Service-for-the-Disabled.git main | ||
PR_BRANCH="${{ github.head_ref }}" | ||
#Frontend에서 보낸 PR의 경우 | ||
if [[ $PR_BRANCH == "Frontend"* ]]; then | ||
cd ${{ secrets.PWD }}/Frontend/creative | ||
#메모리 오버 방지를 위해 기존 서버 동작 중지 | ||
pm2 stop Traffic | ||
#의존성 설치 | ||
npm install | ||
#npm run build 까지 추가로 진행 | ||
npm run build | ||
cd ${{ secrets.PWD }} | ||
npm install | ||
pm2 restart Traffic | ||
cd ${{ secrets.PWD }} | ||
git pull origin main | ||
cd ${{ secrets.PWD }}/BackendJS/BackendTS | ||
npm install | ||
pm2 restart Traffic | ||
- if: github.event.pull_request.merged == true && github.head_ref == 'Frontend' | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.HOST }} | ||
username: ${{ secrets.USERNAME }} | ||
key: ${{ secrets.SSH_KEY }} | ||
passphrase: ${{ secrets.PASSPHRASE }} | ||
port: 22 | ||
script: | | ||
cd ${{ secrets.PWD }} | ||
git pull origin main | ||
cd ${{ secrets.PWD }}/Backend/Frontend/creative | ||
pm2 stop Traffic | ||
npm install | ||
npm run build | ||
cd ${{ secrets.PWD }}/BackendJS/BackendTS | ||
npm install | ||
pm2 restart Traffic |
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 |
---|---|---|
|
@@ -3,6 +3,8 @@ | |
|
||
# ServiceKey | ||
/Backend/Key | ||
/Backend/KEY | ||
KEY | ||
창의학기제 창립제 발표자료 - 박상욱.pptx | ||
|
||
|
||
|
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
import axios from "axios" | ||
|
||
export const api = axios.create({ | ||
<<<<<<< HEAD | ||
baseURL: "http://34.145.39.241:3005" | ||
======= | ||
baseURL: "http://34.168.80.42:3005" | ||
>>>>>>> a4564550bd27da525e96b6fc9b5b02b8210532dc | ||
}) | ||
|
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
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
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
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
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
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
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
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
1 change: 1 addition & 0 deletions
1
Backend/Frontend/creative/src/component/sign-component/signSvg/BUS.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
Backend/Frontend/creative/src/component/sign-component/signSvg/SUBWAY.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Oops, something went wrong.