From d7a4d9f24aad16230574331c3aef090dd46bad8f Mon Sep 17 00:00:00 2001 From: "T. Narantuya" Date: Fri, 29 Aug 2025 17:27:08 +0900 Subject: [PATCH] Update Docker Compose configuration and remove obsolete GitHub Actions workflows - Changed image references in compose-plesk.yaml to use local images for frontend and backend services. - Deleted outdated CI and test workflow files to streamline the repository and reduce maintenance overhead. --- .github/workflows/ci.yml | 46 ------------------- .github/workflows/test.yml | 94 -------------------------------------- compose-plesk.yaml | 4 +- 3 files changed, 2 insertions(+), 142 deletions(-) delete mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 2e3fd0ed..00000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: CI - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: 22 - cache: "pnpm" - - - name: Setup pnpm - uses: pnpm/action-setup@v4 - with: - version: 10.15.0 - - - name: Install deps - run: pnpm install --frozen-lockfile - - - name: Build Shared (needed for type refs) - run: pnpm --filter @customer-portal/shared run build - - - name: Generate Prisma client - run: pnpm --filter @customer-portal/bff run db:generate - - - name: Type check (workspace) - run: pnpm --recursive run type-check - - - name: Lint (workspace) - run: pnpm --recursive run lint - - - name: Build BFF - run: pnpm --filter @customer-portal/bff run build - - - name: Build Portal - run: pnpm --filter @customer-portal/portal run build diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index e044ab40..00000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,94 +0,0 @@ -name: Test & Lint - -on: - push: - branches: [main, develop] - pull_request: - branches: [main, develop] - -env: - NODE_VERSION: "22" - PNPM_VERSION: "10.15.0" - -jobs: - test: - name: Test & Lint - runs-on: ubuntu-latest - - services: - postgres: - image: postgres:17 - env: - POSTGRES_PASSWORD: test - POSTGRES_DB: portal_test - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - - 5432:5432 - - redis: - image: redis:8-alpine - options: >- - --health-cmd "redis-cli ping" - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - - 6379:6379 - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: ${{ env.NODE_VERSION }} - - - name: Enable Corepack and install pnpm - run: | - corepack enable - corepack prepare pnpm@${{ env.PNPM_VERSION }} --activate - - - name: Cache pnpm dependencies - uses: actions/cache@v4 - with: - path: ~/.pnpm-store - key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm- - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Build shared package (needed for type refs) - run: pnpm --filter @customer-portal/shared run build - - - name: Generate Prisma client - run: pnpm --filter @customer-portal/bff run db:generate - - - name: Type check - run: pnpm type-check - - - name: Lint - run: pnpm lint - - - name: Test shared package - run: pnpm --filter @customer-portal/shared run test - if: success() || failure() - - - name: Test BFF package - run: pnpm --filter @customer-portal/bff run test - env: - DATABASE_URL: postgresql://postgres:test@localhost:5432/portal_test - REDIS_URL: redis://localhost:6379 - if: success() || failure() - - - name: Build applications - run: pnpm build - env: - NEXT_PUBLIC_API_BASE: http://localhost:4000 - NEXT_PUBLIC_APP_NAME: Customer Portal Test diff --git a/compose-plesk.yaml b/compose-plesk.yaml index 7995888b..955f06a6 100644 --- a/compose-plesk.yaml +++ b/compose-plesk.yaml @@ -4,7 +4,7 @@ services: frontend: - image: ghcr.io/ntumurbars/customer-portal-frontend:latest + image: portal-frontend:latest container_name: portal-frontend network_mode: bridge ports: @@ -25,7 +25,7 @@ services: retries: 3 backend: - image: ghcr.io/ntumurbars/customer-portal-backend:latest + image: portal-backend:latest container_name: portal-backend network_mode: bridge ports: