From 1cc62101d0791e1942e2b4e3ac1d54dc412777cf Mon Sep 17 00:00:00 2001 From: Chever John Date: Wed, 17 Jun 2026 10:20:10 +0800 Subject: [PATCH] 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 --- .gitlab-ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0a78425..18c1645 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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