From ab333997f3e667c733ac2583643c97644b65dccc Mon Sep 17 00:00:00 2001 From: Gyeongho Yang Date: Sat, 21 Sep 2024 16:38:29 +0900 Subject: [PATCH] refactor: trigger on main branch --- .github/workflows/be-cd.yaml | 2 +- .github/workflows/fe-cd.yaml | 20 ++++++++++---------- frontend/src/config.tsx | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/be-cd.yaml b/.github/workflows/be-cd.yaml index 69882ab..91bc396 100644 --- a/.github/workflows/be-cd.yaml +++ b/.github/workflows/be-cd.yaml @@ -3,7 +3,7 @@ name: Backend Deploy on: push: branches: - - dev + - main paths: - backend/** diff --git a/.github/workflows/fe-cd.yaml b/.github/workflows/fe-cd.yaml index 29e1f9f..bd574a9 100644 --- a/.github/workflows/fe-cd.yaml +++ b/.github/workflows/fe-cd.yaml @@ -3,7 +3,7 @@ name: Frontend Deploy on: push: branches: - - dev + - main paths: - frontend/** @@ -40,12 +40,12 @@ jobs: source: docker-compose.yaml, frontend/dist/ target: ~/${{ github.event.repository.name }} - # - name: Restart docker compose - # uses: appleboy/ssh-action@v1.0.3 - # with: - # host: ${{ secrets.HOST }} - # username: ${{ secrets.USERNAME }} - # key: ${{ secrets.KEY }} - # script: | - # cd ~/${{ github.event.repository.name }} - # docker compose restart fe + - name: Reload docker compose + uses: appleboy/ssh-action@v1.0.3 + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + key: ${{ secrets.KEY }} + script: | + cd ~/${{ github.event.repository.name }} + docker compose up -d fe diff --git a/frontend/src/config.tsx b/frontend/src/config.tsx index 6b1de05..3368339 100644 --- a/frontend/src/config.tsx +++ b/frontend/src/config.tsx @@ -13,7 +13,7 @@ export const LINKS = [ label: "잠재능력", image: "/link/cube.svg", content: , - status: 개선중, + status: 개선중, }, { name: "starforce",