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