Fix CI/CD: Use available images from private registry
This commit is contained in:
parent
2e297cf82f
commit
13fabbd5fc
@ -15,9 +15,9 @@ before_script:
|
||||
# 构建镜像
|
||||
build_image:
|
||||
stage: build
|
||||
image: 192.168.1.154:31010/docker:20.10.16
|
||||
image: 192.168.1.154:31010/docker:latest
|
||||
services:
|
||||
- 192.168.1.154:31010/docker:20.10.16-dind
|
||||
- 192.168.1.154:31010/docker:dind
|
||||
script:
|
||||
- docker build -t $DOCKER_IMAGE_NAME:$DOCKER_TAG .
|
||||
only:
|
||||
|
||||
@ -1,8 +1,11 @@
|
||||
# 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
|
||||
|
||||
# Install Go
|
||||
RUN apk add --no-cache go
|
||||
|
||||
# Copy go mod and sum files
|
||||
COPY go.mod go.sum ./
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user