From f6b5ad89a125c3e96494340b8a472e599b3d3371 Mon Sep 17 00:00:00 2001 From: ouyangxq <775153912@qq.com> Date: Mon, 24 Aug 2026 14:37:55 +0800 Subject: [PATCH] fix(ci): use authorized frontend base image namespace --- Jenkinsfile | 4 ++-- src/deployment/nginxConfig.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4e107ca5..a0c868a7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,8 +7,8 @@ pipeline { DEVELOPMENT_COMPOSE_FILE = 'docker-compose.development.yml' REGISTRY_HOST = '172.31.198.7:10082' REGISTRY_CREDENTIALS = 'gitea-registry-token' - NODE_BASE_IMAGE = '172.31.198.7:10082/html/node:22-alpine' - NGINX_BASE_IMAGE = '172.31.198.7:10082/html/nginx:1.27-alpine' + NODE_BASE_IMAGE = '172.31.198.7:10082/java-project/node:22-alpine' + NGINX_BASE_IMAGE = '172.31.198.7:10082/java-project/nginx:1.27-alpine' } options { diff --git a/src/deployment/nginxConfig.test.ts b/src/deployment/nginxConfig.test.ts index 48fba67f..079261f5 100644 --- a/src/deployment/nginxConfig.test.ts +++ b/src/deployment/nginxConfig.test.ts @@ -53,8 +53,8 @@ describe('admin nginx deployment config', () => { expect(dockerfile).toContain('ARG NGINX_IMAGE=nginx:1.27-alpine') expect(dockerfile).toContain('FROM ${NODE_IMAGE} AS build') expect(dockerfile).toContain('FROM ${NGINX_IMAGE}') - expect(jenkinsfile).toContain("NODE_BASE_IMAGE = '172.31.198.7:10082/html/node:22-alpine'") - expect(jenkinsfile).toContain("NGINX_BASE_IMAGE = '172.31.198.7:10082/html/nginx:1.27-alpine'") + expect(jenkinsfile).toContain("NODE_BASE_IMAGE = '172.31.198.7:10082/java-project/node:22-alpine'") + expect(jenkinsfile).toContain("NGINX_BASE_IMAGE = '172.31.198.7:10082/java-project/nginx:1.27-alpine'") expect(jenkinsfile).toContain('withCredentials([usernamePassword(') expect(jenkinsfile).toContain('export DOCKER_CONFIG="${WORKSPACE}@tmp/docker-auth"') })