Fix: Use docker/ prefix for all private registry images
- Updated all image paths to include docker/ prefix - .gitlab-ci.yml: 192.168.1.154:31010/docker/alpine:latest - Dockerfile: Both build and run stages use docker/alpine:latest - Matches private registry structure where images are in docker/ directory 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
f894bc212e
commit
0fb7557c27
@ -12,7 +12,7 @@ variables:
|
||||
# 构建镜像
|
||||
build_image:
|
||||
stage: build
|
||||
image: 192.168.1.154:31010/alpine:latest
|
||||
image: 192.168.1.154:31010/docker/alpine:latest
|
||||
script:
|
||||
- apk add --no-cache docker-cli
|
||||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
# Build Stage
|
||||
FROM 192.168.1.154:31010/alpine:latest AS builder
|
||||
FROM 192.168.1.154:31010/docker/alpine:latest AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@ -19,7 +19,7 @@ COPY . .
|
||||
RUN go build -o server ./cmd/server
|
||||
|
||||
# Run Stage
|
||||
FROM 192.168.1.154:31010/alpine:latest
|
||||
FROM 192.168.1.154:31010/docker/alpine:latest
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user