-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from boostcampwm-2022/dev
[CLIENT & Server] Release 1.0
- Loading branch information
Showing
129 changed files
with
5,293 additions
and
311 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 +1,58 @@ | ||
# client 워크플로우 작성 공간 | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "client/**" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_CLIENT_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_CLIENT_SECRET_ACCESS_KEY }} | ||
AWS_REGION: "ap-northeast-2" | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Cache node modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: node_modules | ||
key: ${{ runner.OS }}-build-${{ hashFiles('**/yarn-lock') }} | ||
restore-keys: | | ||
${{ runner.OS }}-build- | ||
${{ runner.OS }}- | ||
- name: Install Dependencies | ||
run: yarn install | ||
|
||
- name: Build client | ||
run: yarn client build | ||
env: | ||
PUBLIC_URL: ${{ secrets.ENV_CLIENT_PUBLIC_URL }} | ||
API_URL: ${{ secrets.ENV_CLIENT_API_URL }} | ||
CI: "" | ||
|
||
- name: Deploy | ||
uses: jakejarvis/s3-sync-action@master | ||
with: | ||
args: --acl public-read --follow-symlinks --delete | ||
env: | ||
AWS_S3_BUCKET: ${{ secrets.AWS_CLIENT_S3_BUCKET }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_CLIENT_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_CLIENT_SECRET_ACCESS_KEY }} | ||
AWS_REGION: 'ap-southeast-2' | ||
SOURCE_DIR: './client/build' | ||
|
||
- name: Invalidation | ||
uses: awact/cloudfront-action@master | ||
env: | ||
SOURCE_PATH: '/*' | ||
AWS_REGION: 'ap-southeast-2' | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_CLIENT_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_CLIENT_SECRET_ACCESS_KEY }} | ||
DISTRIBUTION_ID: ${{ secrets.AWS_CLIENT_DISTRIBUTION_ID }} |
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 +1 @@ | ||
# server workflow 작성 공간 | ||
# socket workflow 작성 공간 |
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,52 @@ | ||
name: Backend Api Dev Server | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- dev-be | ||
types: | ||
- closed | ||
|
||
jobs: | ||
noti_slack: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
|
||
- name: action-slack | ||
uses: 8398a7/action-slack@v3 | ||
with: | ||
status: ${{ job.status }} | ||
author_name: Backend dev PR merge! | ||
fields: repo,commit,message,author | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_ASUMI_URL }} # required | ||
if: always() # Pick up events even if the job fails or is canceled. | ||
pull_nCloud_api_server: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: execute remot ssh | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.NCLOUD_REMOTE_IP }} | ||
username: ${{ secrets.NCLOUD_REMOTE_SSH_ID }} | ||
password: ${{ secrets.NCLOUD_REMOTE_SSH_PASSWORD }} | ||
port: ${{ secrets.NCLOUD_REMOTE_SSH_PORT }} | ||
script: | | ||
whoami | ||
cd web24-Asnity | ||
git stash | ||
git pull origin dev-be | ||
ls -al | ||
export NVM_DIR=~/.nvm | ||
source ~/.nvm/nvm.sh | ||
yarn install | ||
pm2 restart asnity-api |
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,4 +1,8 @@ | ||
.idea/ | ||
node_modules/ | ||
server/dist | ||
server/node_modules/ | ||
server/node_modules/ | ||
server/config/ | ||
.DS_Store | ||
client/node_modules/ | ||
yarn-error.log |
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,5 +1,5 @@ | ||
{ | ||
"endOfLine": "lf", | ||
"endOfLine": "auto", | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": true, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import type { Configuration } from 'webpack'; | ||
|
||
import CssMinimizerPlugin from 'css-minimizer-webpack-plugin'; | ||
import MiniCssExtractPlugin from 'mini-css-extract-plugin'; | ||
import TerserPlugin from 'terser-webpack-plugin'; | ||
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer'; | ||
import { merge } from 'webpack-merge'; | ||
|
||
import common from './webpack.common'; | ||
|
||
const config: Configuration = { | ||
devtool: 'inline-source-map', | ||
mode: 'production', | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.css$/, | ||
use: [MiniCssExtractPlugin.loader, 'css-loader', 'postcss-loader'], | ||
exclude: /node_modules/, | ||
}, | ||
], | ||
}, | ||
plugins: [ | ||
new MiniCssExtractPlugin(), | ||
new BundleAnalyzerPlugin({ | ||
analyzerMode: 'static', | ||
reportFilename: 'report.html', | ||
openAnalyzer: false, | ||
}), | ||
], | ||
optimization: { | ||
minimize: true, | ||
minimizer: [ | ||
new CssMinimizerPlugin(), | ||
new TerserPlugin({ | ||
terserOptions: { | ||
format: { | ||
comments: false, | ||
}, | ||
}, | ||
extractComments: false, | ||
}), | ||
], | ||
}, | ||
}; | ||
|
||
export default merge(common, config); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
}; |
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
Oops, something went wrong.