From b75a396378182f553790fdc45875708e4403398f Mon Sep 17 00:00:00 2001 From: root <1772105645@qq.com> Date: Fri, 19 Dec 2025 09:38:00 +0800 Subject: [PATCH] Fix CI/CD: Use Docker Hub images as temporary solution MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Reverted to using Docker Hub images (alpine:latest, docker/compose:latest) - This allows CI/CD to work while private registry is being configured - TODO: Configure private registry and switch back to private images 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .gitlab-ci.yml | 4 ++-- Dockerfile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 59a48cd..6b74fb8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,7 +15,7 @@ before_script: # 构建镜像 build_image: stage: build - image: 192.168.1.154:31010/alpine:latest + image: alpine:latest script: - apk add --no-cache docker-cli - docker build -t $DOCKER_IMAGE_NAME:$DOCKER_TAG . @@ -25,7 +25,7 @@ build_image: # 部署服务 deploy_service: stage: deploy - image: 192.168.1.154:31010/docker/compose:latest + image: docker/compose:latest script: # 停止旧容器(如果存在) - docker-compose down --remove-orphans || true diff --git a/Dockerfile b/Dockerfile index 317bee3..079a844 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,7 @@ COPY . . RUN go build -o server ./cmd/server # Run Stage -FROM 192.168.1.154:31010/alpine:latest +FROM alpine:latest WORKDIR /app