🔧 fix(ci): fix todo-backend build and remove obsolete clock app

- Fix todo-backend Dockerfile to build shared packages inline instead of
  using non-existent docker/shared/build-shared-packages.sh script
- Remove clock-backend and clock-web from all CI/CD workflows (app no
  longer exists in the monorepo)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Wuesteon 2025-12-25 19:35:41 +01:00
parent 304897261d
commit 8a6fe7ebb0
4 changed files with 7 additions and 19 deletions

View file

@ -140,7 +140,7 @@ jobs:
web)
# Apps with their own Dockerfiles (need monorepo root for shared packages)
case "$PROJECT" in
manacore|todo|calendar|clock)
manacore|todo|calendar)
DOCKERFILE_PATH="apps/$PROJECT/apps/web/Dockerfile"
CONTEXT_PATH="."
;;
@ -174,7 +174,6 @@ jobs:
manacore) PORT="5173" ;;
todo) PORT="5188" ;;
calendar) PORT="5186" ;;
clock) PORT="5187" ;;
*) PORT="5173" ;; # default SvelteKit port
esac
fi

View file

@ -29,8 +29,6 @@ on:
- todo-web
- calendar-backend
- calendar-web
- clock-backend
- clock-web
- picture-backend
- picture-web
workflow_call:
@ -220,9 +218,6 @@ jobs:
# Create calendar database (for calendar-backend service)
docker compose exec -T postgres psql -U postgres -c "CREATE DATABASE calendar;" 2>/dev/null || echo "calendar database already exists"
# Create clock database (for clock-backend service)
docker compose exec -T postgres psql -U postgres -c "CREATE DATABASE clock;" 2>/dev/null || echo "clock database already exists"
# Create picture database (for picture-backend service)
docker compose exec -T postgres psql -U postgres -c "CREATE DATABASE picture;" 2>/dev/null || echo "picture database already exists"
@ -361,8 +356,6 @@ jobs:
check_health todo-web http://localhost:5188/health || exit 1
check_health calendar-backend http://localhost:3016/api/v1/health || exit 1
check_health calendar-web http://localhost:5186/health || exit 1
check_health clock-backend http://localhost:3017/api/v1/health || exit 1
check_health clock-web http://localhost:5187/health || exit 1
check_health picture-backend http://localhost:3006/api/v1/health || exit 1
check_health picture-web http://localhost:5175/health || exit 1

View file

@ -78,8 +78,6 @@ jobs:
- { name: 'todo-web', path: 'apps/todo/apps/web', port: '5188' }
- { name: 'calendar-backend', path: 'apps/calendar/apps/backend', port: '3016' }
- { name: 'calendar-web', path: 'apps/calendar/apps/web', port: '5186' }
- { name: 'clock-backend', path: 'apps/clock/apps/backend', port: '3017' }
- { name: 'clock-web', path: 'apps/clock/apps/web', port: '5187' }
- { name: 'picture-backend', path: 'apps/picture/apps/backend', port: '3006' }
- { name: 'picture-web', path: 'apps/picture/apps/web', port: '5175' }
fail-fast: false

View file

@ -12,15 +12,10 @@ COPY package.json ./
COPY pnpm-lock.yaml ./
# Copy shared packages (core packages for NestJS backends)
COPY packages/shared-errors ./packages/shared-errors
COPY packages/better-auth-types ./packages/better-auth-types
COPY packages/shared-nestjs-auth ./packages/shared-nestjs-auth
COPY packages/shared-nestjs-cors ./packages/shared-nestjs-cors
# Copy build script
COPY docker/shared/build-shared-packages.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/build-shared-packages.sh
# Copy todo shared package and backend
COPY apps/todo/packages/shared ./apps/todo/packages/shared
COPY apps/todo/apps/backend ./apps/todo/apps/backend
@ -29,10 +24,13 @@ COPY apps/todo/apps/backend ./apps/todo/apps/backend
RUN pnpm install --frozen-lockfile
# Build shared packages in dependency order
RUN build-shared-packages.sh
WORKDIR /app/packages/better-auth-types
RUN pnpm build
# Build todo shared package
WORKDIR /app/apps/todo/packages/shared
WORKDIR /app/packages/shared-nestjs-auth
RUN pnpm build
WORKDIR /app/packages/shared-nestjs-cors
RUN pnpm build
# Build the backend