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:
parent
0beb859c54
commit
b75a396378
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user