Skip to content

Commit

Permalink
어드민 repo 이전으로 코드 지우기
Browse files Browse the repository at this point in the history
  • Loading branch information
yongseongkim committed Aug 12, 2024
1 parent 39fefb7 commit 87f3788
Show file tree
Hide file tree
Showing 61 changed files with 1 addition and 32,466 deletions.
51 changes: 0 additions & 51 deletions .github/workflows/dev-ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,52 +73,10 @@ jobs:
CURRENT_GITHUB_ACTION_RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
curl -X POST -H 'Content-type: application/json' --data "{\"attachments\":[{\"color\":\"#FF0000\",\"title\":\"[DEV] Backend CI Failed\", \"text\":\"<!subteam^S052B9W7129> (<$CURRENT_GITHUB_ACTION_RUN_URL|github action run url>)\"}]}" ${{ secrets.SLACK_URL_SCC_SERVER_CHANNEL }} -v
# frontend-ci:
# runs-on: ubuntu-latest
#
# defaults:
# run:
# working-directory: app-admin-frontend
#
# steps:
# - uses: actions/checkout@v3
#
# - name: Setup Node
# uses: actions/setup-node@v3
# with:
# node-version: 18
#
# - name: Install & Run openapi-generator
# run: |
# mkdir -p ~/bin/openapitools
# curl https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/bin/utils/openapi-generator-cli.sh > ~/bin/openapitools/openapi-generator-cli
# chmod u+x ~/bin/openapitools/openapi-generator-cli
# export PATH=$PATH:~/bin/openapitools/
#
# mv ~/bin/openapitools/openapi-generator-cli ~/bin/openapitools/openapi-generator
#
# OPENAPI_GENERATOR_VERSION=7.1.0 ./generate-api-spec.sh
#
# - name: Configure AWS Credentials
# uses: aws-actions/configure-aws-credentials@v2
# with:
# role-to-assume: arn:aws:iam::291889421067:role/github-action-ci-cd
# aws-region: ap-northeast-2
#
# - name: Build and Push Image
# run: ./docker-push.sh dev
#
# - name: Notify CI failure to slack
# if: failure()
# run: |
# CURRENT_GITHUB_ACTION_RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
# curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"[DEV] Frontend CI failed. <!subteam^S052B9W7129> (<$CURRENT_GITHUB_ACTION_RUN_URL|github action run url>)\"}" ${{ secrets.SLACK_URL_SCC_SERVER_CHANNEL }} -v

cd:
runs-on: ubuntu-latest
needs:
- backend-ci
# - frontend-ci

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -152,15 +110,6 @@ jobs:
run: |
kubectl rollout restart deploy/scc-server -n dev
# - name: Upgrade scc-admin-frontend helm chart
# working-directory: infra/helm/scc-admin-frontend
# run: |
# helm upgrade --install --namespace dev -f values-dev.yaml scc-admin-frontend ./
#
# - name: Restart deploy/scc-admin-frontend # tag를 latest-rc로 고정해서 사용하기 때문에 helm upgrade --install만 해서는 새 버전의 이미지가 배포되지 않는다. 따라서 강제로 rollout을 해준다.
# run: |
# kubectl rollout restart deploy/scc-admin-frontend -n dev

- name: Notify CD failure to slack
if: failure()
run: |
Expand Down
39 changes: 0 additions & 39 deletions .github/workflows/pr-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,42 +66,3 @@ jobs:
with:
message: |
:fire::fire::fire: Backend CI Failed. [github action link](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) :fire::fire::fire:
# frontend-ci:
# runs-on: ubuntu-latest
#
# defaults:
# run:
# working-directory: app-admin-frontend
#
# steps:
# - uses: actions/checkout@v3
#
# - name: Setup Node
# uses: actions/setup-node@v3
# with:
# node-version: 18
#
# - name: Install & Run openapi-generator
# run: |
# mkdir -p ~/bin/openapitools
# curl https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/bin/utils/openapi-generator-cli.sh > ~/bin/openapitools/openapi-generator-cli
# chmod u+x ~/bin/openapitools/openapi-generator-cli
# export PATH=$PATH:~/bin/openapitools/
#
# mv ~/bin/openapitools/openapi-generator-cli ~/bin/openapitools/openapi-generator
#
# OPENAPI_GENERATOR_VERSION=7.1.0 ./generate-api-spec.sh
#
# - name: Build
# run: |
# npm install -f
# npm run build:dev
#
# - name: Notify CI failure to PR
# uses: thollander/actions-comment-pull-request@v2
# if: failure()
# with:
# message: |
# :fire::fire::fire: Frontend CI Failed. [github action link](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) :fire::fire::fire:

59 changes: 0 additions & 59 deletions .github/workflows/prod-ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,54 +77,10 @@ jobs:
CURRENT_GITHUB_ACTION_RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
curl -X POST -H 'Content-type: application/json' --data "{\"attachments\":[{\"color\":\"#FF0000\",\"title\":\"[PROD] Backend CI Failed\", \"text\":\"<!subteam^S052B9W7129> (<$CURRENT_GITHUB_ACTION_RUN_URL|github action run url>)\"}]}" ${{ secrets.SLACK_URL_SCC_SERVER_CHANNEL }} -v
# frontend-ci:
# runs-on: ubuntu-latest
#
# defaults:
# run:
# working-directory: app-admin-frontend
#
# steps:
# - uses: actions/checkout@v3
# - name: Set RELEASE_VERSION
# run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
#
# - name: Setup Node
# uses: actions/setup-node@v3
# with:
# node-version: 18
#
# - name: Install & Run openapi-generator
# run: |
# mkdir -p ~/bin/openapitools
# curl https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/bin/utils/openapi-generator-cli.sh > ~/bin/openapitools/openapi-generator-cli
# chmod u+x ~/bin/openapitools/openapi-generator-cli
# export PATH=$PATH:~/bin/openapitools/
#
# mv ~/bin/openapitools/openapi-generator-cli ~/bin/openapitools/openapi-generator
#
# OPENAPI_GENERATOR_VERSION=7.1.0 ./generate-api-spec.sh
#
# - name: Configure AWS Credentials
# uses: aws-actions/configure-aws-credentials@v2
# with:
# role-to-assume: arn:aws:iam::291889421067:role/github-action-ci-cd
# aws-region: ap-northeast-2
#
# - name: Build and Push Image
# run: ./docker-push.sh prod $RELEASE_VERSION
#
# - name: Notify CD failure to slack
# if: failure()
# run: |
# CURRENT_GITHUB_ACTION_RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
# curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"[PROD] Frontend CI failed. <!subteam^S052B9W7129> (<$CURRENT_GITHUB_ACTION_RUN_URL|github action run url>)\"}" ${{ secrets.SLACK_URL_SCC_SERVER_CHANNEL }} -v

cd:
runs-on: ubuntu-latest
needs:
- backend-ci
# - frontend-ci

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -162,16 +118,6 @@ jobs:
run: |
helm upgrade --install --namespace scc -f values-prod.yaml scc-server ./
# - name: Update image tag for scc-admin-frontend
# uses: mikefarah/yq@master
# with:
# cmd: yq -i '.image.tag = strenv(RELEASE_VERSION)' 'infra/helm/scc-admin-frontend/values-prod.yaml'
#
# - name: Upgrade scc-admin-frontend helm chart
# working-directory: infra/helm/scc-admin-frontend
# run: |
# helm upgrade --install --namespace scc -f values-prod.yaml scc-admin-frontend ./

- name: Notify CD failure to slack
if: failure()
run: |
Expand Down Expand Up @@ -205,11 +151,6 @@ jobs:
with:
cmd: yq -i '.image.tag = strenv(RELEASE_VERSION)' 'infra/helm/scc-server/values-prod.yaml'

# - name: Update image tag for scc-admin-frontend
# uses: mikefarah/yq@master
# with:
# cmd: yq -i '.image.tag = strenv(RELEASE_VERSION)' 'infra/helm/scc-admin-frontend/values-prod.yaml'

- name: Commit and push image tag for main branch
run: |
git config --global user.email "[email protected]"
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ git subtree pull --prefix app-server/subprojects/api/scc-api scc-api main
git subtree push --prefix app-server/subprojects/api/scc-api scc-api main
```

프론트엔드(어드민)를 위한 typescript generating은 아래의 커맨드를 실행해야 합니다.
```bash
# app-admin-frontend 디렉토리에서
./generate-api-spec.sh
```

이때 openapi-generator CLI의 버전은 7.1.0 이하여야 합니다. 7.2.0부터는 axios 버전이 1.x.x로 올라가서 호환이 깨집니다.

### 로컬에서 빌드하기 / 서버 띄우기
Expand Down
2 changes: 0 additions & 2 deletions app-admin-frontend/.env.dev

This file was deleted.

2 changes: 0 additions & 2 deletions app-admin-frontend/.env.prod

This file was deleted.

27 changes: 0 additions & 27 deletions app-admin-frontend/.gitignore

This file was deleted.

9 changes: 0 additions & 9 deletions app-admin-frontend/Dockerfile

This file was deleted.

70 changes: 0 additions & 70 deletions app-admin-frontend/README.md

This file was deleted.

20 changes: 0 additions & 20 deletions app-admin-frontend/docker-push.sh

This file was deleted.

14 changes: 0 additions & 14 deletions app-admin-frontend/generate-api-spec.sh

This file was deleted.

12 changes: 0 additions & 12 deletions app-admin-frontend/nginx.conf

This file was deleted.

Loading

0 comments on commit 87f3788

Please sign in to comment.