Switch CI/CD jobs to use Alpine image and install Docker tools manually
This commit is contained in:
parent
13fabbd5fc
commit
16dc7313d7
@ -15,10 +15,11 @@ before_script:
|
|||||||
# 构建镜像
|
# 构建镜像
|
||||||
build_image:
|
build_image:
|
||||||
stage: build
|
stage: build
|
||||||
image: 192.168.1.154:31010/docker:latest
|
image: 192.168.1.154:31010/alpine:latest
|
||||||
services:
|
services:
|
||||||
- 192.168.1.154:31010/docker:dind
|
- 192.168.1.154:31010/docker:dind
|
||||||
script:
|
script:
|
||||||
|
- apk add --no-cache docker-cli
|
||||||
- docker build -t $DOCKER_IMAGE_NAME:$DOCKER_TAG .
|
- docker build -t $DOCKER_IMAGE_NAME:$DOCKER_TAG .
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user