fix(ci): use authorized frontend base image namespace

This commit is contained in:
2026-08-24 14:37:55 +08:00
parent 7033903e67
commit f6b5ad89a1
2 changed files with 4 additions and 4 deletions
Vendored
+2 -2
View File
@@ -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 {
+2 -2
View File
@@ -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"')
})