feat(ci): Use local registry 10.100.9.70:5000 for base images
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -3,7 +3,7 @@ steps:
|
|||||||
# PR VALIDATION: Parallel type checks (PRs only)
|
# PR VALIDATION: Parallel type checks (PRs only)
|
||||||
# ===========================================
|
# ===========================================
|
||||||
typecheck-backend:
|
typecheck-backend:
|
||||||
image: mirror.gcr.io/library/node:22
|
image: 10.100.9.70:5000/node:22
|
||||||
commands:
|
commands:
|
||||||
- cd backend
|
- cd backend
|
||||||
- npm ci --prefer-offline
|
- npm ci --prefer-offline
|
||||||
@@ -13,7 +13,7 @@ steps:
|
|||||||
event: pull_request
|
event: pull_request
|
||||||
|
|
||||||
typecheck-cannaiq:
|
typecheck-cannaiq:
|
||||||
image: mirror.gcr.io/library/node:22
|
image: 10.100.9.70:5000/node:22
|
||||||
commands:
|
commands:
|
||||||
- cd cannaiq
|
- cd cannaiq
|
||||||
- npm ci --prefer-offline
|
- npm ci --prefer-offline
|
||||||
@@ -23,7 +23,7 @@ steps:
|
|||||||
event: pull_request
|
event: pull_request
|
||||||
|
|
||||||
typecheck-findadispo:
|
typecheck-findadispo:
|
||||||
image: mirror.gcr.io/library/node:22
|
image: 10.100.9.70:5000/node:22
|
||||||
commands:
|
commands:
|
||||||
- cd findadispo/frontend
|
- cd findadispo/frontend
|
||||||
- npm ci --prefer-offline
|
- npm ci --prefer-offline
|
||||||
@@ -33,7 +33,7 @@ steps:
|
|||||||
event: pull_request
|
event: pull_request
|
||||||
|
|
||||||
typecheck-findagram:
|
typecheck-findagram:
|
||||||
image: mirror.gcr.io/library/node:22
|
image: 10.100.9.70:5000/node:22
|
||||||
commands:
|
commands:
|
||||||
- cd findagram/frontend
|
- cd findagram/frontend
|
||||||
- npm ci --prefer-offline
|
- npm ci --prefer-offline
|
||||||
@@ -46,7 +46,7 @@ steps:
|
|||||||
# AUTO-MERGE: Merge PR after all checks pass
|
# AUTO-MERGE: Merge PR after all checks pass
|
||||||
# ===========================================
|
# ===========================================
|
||||||
auto-merge:
|
auto-merge:
|
||||||
image: mirror.gcr.io/library/alpine:latest
|
image: 10.100.9.70:5000/alpine:latest
|
||||||
environment:
|
environment:
|
||||||
GITEA_TOKEN:
|
GITEA_TOKEN:
|
||||||
from_secret: gitea_token
|
from_secret: gitea_token
|
||||||
@@ -158,7 +158,7 @@ steps:
|
|||||||
# STAGE 3: Deploy and Run Migrations
|
# STAGE 3: Deploy and Run Migrations
|
||||||
# ===========================================
|
# ===========================================
|
||||||
deploy:
|
deploy:
|
||||||
image: mirror.gcr.io/bitnami/kubectl:latest
|
image: 10.100.9.70:5000/bitnami/kubectl:latest
|
||||||
environment:
|
environment:
|
||||||
KUBECONFIG_CONTENT:
|
KUBECONFIG_CONTENT:
|
||||||
from_secret: kubeconfig_data
|
from_secret: kubeconfig_data
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Build stage
|
# Build stage
|
||||||
# Image: git.spdy.io/creationshop/dispensary-scraper
|
# Image: git.spdy.io/creationshop/dispensary-scraper
|
||||||
FROM mirror.gcr.io/library/node:22-slim AS builder
|
FROM 10.100.9.70:5000/node:22-slim AS builder
|
||||||
|
|
||||||
# Install build tools for native modules (bcrypt, sharp)
|
# Install build tools for native modules (bcrypt, sharp)
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
@@ -27,7 +27,7 @@ RUN npm run build
|
|||||||
RUN npm prune --production
|
RUN npm prune --production
|
||||||
|
|
||||||
# Production stage
|
# Production stage
|
||||||
FROM mirror.gcr.io/library/node:22-slim
|
FROM 10.100.9.70:5000/node:22-slim
|
||||||
|
|
||||||
# Build arguments for version info
|
# Build arguments for version info
|
||||||
ARG APP_BUILD_VERSION=dev
|
ARG APP_BUILD_VERSION=dev
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Build stage
|
# Build stage
|
||||||
FROM mirror.gcr.io/library/node:22-slim AS builder
|
FROM 10.100.9.70:5000/node:22-slim AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@@ -20,7 +20,7 @@ COPY . .
|
|||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# Production stage
|
# Production stage
|
||||||
FROM mirror.gcr.io/library/nginx:alpine
|
FROM 10.100.9.70:5000/nginx:alpine
|
||||||
|
|
||||||
# Copy built assets from builder stage
|
# Copy built assets from builder stage
|
||||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Build stage
|
# Build stage
|
||||||
FROM mirror.gcr.io/library/node:22-slim AS builder
|
FROM 10.100.9.70:5000/node:22-slim AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@@ -20,7 +20,7 @@ COPY . .
|
|||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# Production stage
|
# Production stage
|
||||||
FROM mirror.gcr.io/library/nginx:alpine
|
FROM 10.100.9.70:5000/nginx:alpine
|
||||||
|
|
||||||
# Copy built assets from builder stage (CRA outputs to /build)
|
# Copy built assets from builder stage (CRA outputs to /build)
|
||||||
COPY --from=builder /app/build /usr/share/nginx/html
|
COPY --from=builder /app/build /usr/share/nginx/html
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Build stage
|
# Build stage
|
||||||
FROM mirror.gcr.io/library/node:22-slim AS builder
|
FROM 10.100.9.70:5000/node:22-slim AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ COPY . .
|
|||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# Production stage
|
# Production stage
|
||||||
FROM mirror.gcr.io/library/nginx:alpine
|
FROM 10.100.9.70:5000/nginx:alpine
|
||||||
|
|
||||||
# Copy built assets from builder stage (CRA outputs to /build)
|
# Copy built assets from builder stage (CRA outputs to /build)
|
||||||
COPY --from=builder /app/build /usr/share/nginx/html
|
COPY --from=builder /app/build /usr/share/nginx/html
|
||||||
|
|||||||
Reference in New Issue
Block a user