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.
This commit is contained in:
parent
3270069324
commit
d7a4d9f24a
46
.github/workflows/ci.yml
vendored
46
.github/workflows/ci.yml
vendored
@ -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
|
||||
94
.github/workflows/test.yml
vendored
94
.github/workflows/test.yml
vendored
@ -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
|
||||
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user