Fix CI/CD: Use Docker Hub images as temporary solution

- 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 <noreply@anthropic.com>
This commit is contained in:
root 2025-12-19 09:38:00 +08:00
parent 0beb859c54
commit b75a396378
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ before_script:
# 构建镜像 # 构建镜像
build_image: build_image:
stage: build stage: build
image: 192.168.1.154:31010/alpine:latest image: alpine:latest
script: script:
- apk add --no-cache docker-cli - apk add --no-cache docker-cli
- docker build -t $DOCKER_IMAGE_NAME:$DOCKER_TAG . - docker build -t $DOCKER_IMAGE_NAME:$DOCKER_TAG .
@ -25,7 +25,7 @@ build_image:
# 部署服务 # 部署服务
deploy_service: deploy_service:
stage: deploy stage: deploy
image: 192.168.1.154:31010/docker/compose:latest image: docker/compose:latest
script: script:
# 停止旧容器(如果存在) # 停止旧容器(如果存在)
- docker-compose down --remove-orphans || true - docker-compose down --remove-orphans || true

View File

@ -19,7 +19,7 @@ COPY . .
RUN go build -o server ./cmd/server RUN go build -o server ./cmd/server
# Run Stage # Run Stage
FROM 192.168.1.154:31010/alpine:latest FROM alpine:latest
WORKDIR /app WORKDIR /app