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:
|
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:
|
||||||
|
|||||||
@ -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 ./
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user