Fix CI/CD: Use available images from private registry

This commit is contained in:
root 2025-12-18 15:47:17 +08:00
parent 2e297cf82f
commit 13fabbd5fc
2 changed files with 6 additions and 3 deletions

View File

@ -15,9 +15,9 @@ before_script:
# 构建镜像 # 构建镜像
build_image: build_image:
stage: build stage: build
image: 192.168.1.154:31010/docker:20.10.16 image: 192.168.1.154:31010/docker:latest
services: services:
- 192.168.1.154:31010/docker:20.10.16-dind - 192.168.1.154:31010/docker:dind
script: script:
- docker build -t $DOCKER_IMAGE_NAME:$DOCKER_TAG . - docker build -t $DOCKER_IMAGE_NAME:$DOCKER_TAG .
only: only:

View File

@ -1,8 +1,11 @@
# Build Stage # Build Stage
FROM 192.168.1.154:31010/golang:1.23-alpine AS builder FROM 192.168.1.154:31010/alpine:latest AS builder
WORKDIR /app WORKDIR /app
# Install Go
RUN apk add --no-cache go
# Copy go mod and sum files # Copy go mod and sum files
COPY go.mod go.sum ./ COPY go.mod go.sum ./