Add CI/CD pipeline with Harbor registry and SSH deployment
- Replace local deployment with proper CI/CD pipeline - Add lint job as first stage (fail-fast) - Build and push Docker image to Harbor registry - Deploy via SSH with image tag from commit SHA - Add deployment verification with health check - Update Dockerfile to Node 20 and fix npm ci - Support IMAGE variable in docker-compose for deployments Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@ -1,13 +1,13 @@
|
||||
# Build stage
|
||||
FROM node:18-alpine as build
|
||||
FROM node:20-alpine as build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm ci --only=production
|
||||
# Install dependencies (including devDependencies needed for build)
|
||||
RUN npm ci
|
||||
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
Reference in New Issue
Block a user