fix(ci): stagger builds in stages and add retry for Harbor load
Split 3 builds into 2 stages (2+1) and add retry: 2. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
4547ce7fed
commit
1cc62101d0
@ -1,5 +1,6 @@
|
||||
stages:
|
||||
- build
|
||||
- build-1
|
||||
- build-2
|
||||
|
||||
variables:
|
||||
HARBOR_REGISTRY: harbor-in-k3s.cheverjohn.me
|
||||
@ -10,10 +11,10 @@ variables:
|
||||
DOCKER_CERT_PATH: /certs/client
|
||||
|
||||
.build-template: &build-template
|
||||
stage: build
|
||||
image: docker:27
|
||||
services:
|
||||
- docker:27-dind
|
||||
retry: 2
|
||||
before_script:
|
||||
- until docker info >/dev/null 2>&1; do echo "Waiting for Docker daemon..."; sleep 2; done
|
||||
- echo "$HARBOR_PASSWORD" | docker login $HARBOR_REGISTRY -u "$HARBOR_USER" --password-stdin
|
||||
@ -32,18 +33,21 @@ variables:
|
||||
|
||||
build-muyu-gateway:
|
||||
<<: *build-template
|
||||
stage: build-1
|
||||
variables:
|
||||
IMAGE_NAME: muyu-gateway
|
||||
DOCKERFILE_PATH: deploy/Dockerfile.gateway
|
||||
|
||||
build-muyu-system-rpc:
|
||||
<<: *build-template
|
||||
stage: build-1
|
||||
variables:
|
||||
IMAGE_NAME: muyu-system-rpc
|
||||
DOCKERFILE_PATH: deploy/Dockerfile.system
|
||||
|
||||
build-muyu-inventory-rpc:
|
||||
<<: *build-template
|
||||
stage: build-2
|
||||
variables:
|
||||
IMAGE_NAME: muyu-inventory-rpc
|
||||
DOCKERFILE_PATH: deploy/Dockerfile.inventory
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user