fix(ci): Use mirror.gcr.io as registry mirror for Kaniko
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Kelly
2025-12-15 18:52:02 -07:00
parent ccefd325aa
commit 68430f5c22
5 changed files with 18 additions and 14 deletions

View File

@@ -3,7 +3,7 @@ steps:
# PR VALIDATION: Parallel type checks (PRs only) # PR VALIDATION: Parallel type checks (PRs only)
# =========================================== # ===========================================
typecheck-backend: typecheck-backend:
image: 10.100.9.70:5000/node:22 image: 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: 10.100.9.70:5000/node:22 image: 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: 10.100.9.70:5000/node:22 image: 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: 10.100.9.70:5000/node:22 image: 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: 10.100.9.70:5000/alpine:latest image: alpine:latest
environment: environment:
GITEA_TOKEN: GITEA_TOKEN:
from_secret: gitea_token from_secret: gitea_token
@@ -88,6 +88,7 @@ steps:
--build-arg=APP_GIT_SHA=${CI_COMMIT_SHA} --build-arg=APP_GIT_SHA=${CI_COMMIT_SHA}
--build-arg=APP_BUILD_TIME=${CI_PIPELINE_CREATED} --build-arg=APP_BUILD_TIME=${CI_PIPELINE_CREATED}
--build-arg=CONTAINER_IMAGE_TAG=sha-${CI_COMMIT_SHA:0:8} --build-arg=CONTAINER_IMAGE_TAG=sha-${CI_COMMIT_SHA:0:8}
--registry-mirror=mirror.gcr.io
--cache=true --cache=true
depends_on: [] depends_on: []
when: when:
@@ -108,6 +109,7 @@ steps:
--dockerfile=/woodpecker/src/git.spdy.io/Creationshop/cannaiq/cannaiq/Dockerfile --dockerfile=/woodpecker/src/git.spdy.io/Creationshop/cannaiq/cannaiq/Dockerfile
--destination=git.spdy.io/creationshop/cannaiq-frontend:latest --destination=git.spdy.io/creationshop/cannaiq-frontend:latest
--destination=git.spdy.io/creationshop/cannaiq-frontend:sha-${CI_COMMIT_SHA:0:8} --destination=git.spdy.io/creationshop/cannaiq-frontend:sha-${CI_COMMIT_SHA:0:8}
--registry-mirror=mirror.gcr.io
--cache=true --cache=true
depends_on: [] depends_on: []
when: when:
@@ -128,6 +130,7 @@ steps:
--dockerfile=/woodpecker/src/git.spdy.io/Creationshop/cannaiq/findadispo/frontend/Dockerfile --dockerfile=/woodpecker/src/git.spdy.io/Creationshop/cannaiq/findadispo/frontend/Dockerfile
--destination=git.spdy.io/creationshop/findadispo-frontend:latest --destination=git.spdy.io/creationshop/findadispo-frontend:latest
--destination=git.spdy.io/creationshop/findadispo-frontend:sha-${CI_COMMIT_SHA:0:8} --destination=git.spdy.io/creationshop/findadispo-frontend:sha-${CI_COMMIT_SHA:0:8}
--registry-mirror=mirror.gcr.io
--cache=true --cache=true
depends_on: [] depends_on: []
when: when:
@@ -148,6 +151,7 @@ steps:
--dockerfile=/woodpecker/src/git.spdy.io/Creationshop/cannaiq/findagram/frontend/Dockerfile --dockerfile=/woodpecker/src/git.spdy.io/Creationshop/cannaiq/findagram/frontend/Dockerfile
--destination=git.spdy.io/creationshop/findagram-frontend:latest --destination=git.spdy.io/creationshop/findagram-frontend:latest
--destination=git.spdy.io/creationshop/findagram-frontend:sha-${CI_COMMIT_SHA:0:8} --destination=git.spdy.io/creationshop/findagram-frontend:sha-${CI_COMMIT_SHA:0:8}
--registry-mirror=mirror.gcr.io
--cache=true --cache=true
depends_on: [] depends_on: []
when: when:
@@ -158,7 +162,7 @@ steps:
# STAGE 3: Deploy and Run Migrations # STAGE 3: Deploy and Run Migrations
# =========================================== # ===========================================
deploy: deploy:
image: 10.100.9.70:5000/bitnami/kubectl:latest image: bitnami/kubectl:latest
environment: environment:
KUBECONFIG_CONTENT: KUBECONFIG_CONTENT:
from_secret: kubeconfig_data from_secret: kubeconfig_data

View File

@@ -1,6 +1,6 @@
# Build stage # Build stage
# Image: git.spdy.io/creationshop/dispensary-scraper # Image: git.spdy.io/creationshop/dispensary-scraper
FROM 10.100.9.70:5000/node:22-slim AS builder FROM 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 10.100.9.70:5000/node:22-slim FROM node:22-slim
# Build arguments for version info # Build arguments for version info
ARG APP_BUILD_VERSION=dev ARG APP_BUILD_VERSION=dev

View File

@@ -1,5 +1,5 @@
# Build stage # Build stage
FROM 10.100.9.70:5000/node:22-slim AS builder FROM 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 10.100.9.70:5000/nginx:alpine FROM 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

View File

@@ -1,5 +1,5 @@
# Build stage # Build stage
FROM 10.100.9.70:5000/node:22-slim AS builder FROM 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 10.100.9.70:5000/nginx:alpine FROM 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

View File

@@ -1,5 +1,5 @@
# Build stage # Build stage
FROM 10.100.9.70:5000/node:22-slim AS builder FROM 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 10.100.9.70:5000/nginx:alpine FROM 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