Skip to content

Commit

Permalink
Merge branch 'dev' into K5P-51/feat/상품및회원컴포넌트
Browse files Browse the repository at this point in the history
  • Loading branch information
Koneweekk authored Jul 22, 2024
2 parents f6eebf9 + 5cf8159 commit 0a97d4d
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CD

on:
push:
branches:
- prod

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: create env file
run: |
touch .env
echo "${{ secrets.ENV }}" >> .env
- name: Setup Node.js environment
uses: actions/[email protected]

- name: Run a multi-line script
run: |
npm install
npm run build
- name: S3 Sync
uses: jakejarvis/[email protected]
with:
args: --acl public-read --delete
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'ap-northeast-2'
SOURCE_DIR: 'dist'

- name: Invalidate Cloudfront
uses: chetan/[email protected]
env:
DISTRIBUTION: ${{ secrets.DISTRIBUTION }}
PATHS: '/*'
AWS_REGION: 'ap-northeast-2'
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI
on:
push:
branches:
- prod
- dev
pull_request:

jobs:
sonarcloud:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
13 changes: 13 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
sonar.projectKey=Billing-Wise_client
sonar.organization=billing-wise

# This is the name and version displayed in the SonarCloud UI.
#sonar.projectName=client
#sonar.projectVersion=1.0


# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
#sonar.sources=.

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8

0 comments on commit 0a97d4d

Please sign in to comment.