From 57efe3422969ebac4fd689e9b4e8e77afb76d867 Mon Sep 17 00:00:00 2001 From: bangbang93 Date: Fri, 1 Mar 2024 11:45:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9E=84=E5=BB=BA=E6=97=B6=E6=A3=80?= =?UTF-8?q?=E6=9F=A5docker=E8=B5=B7=E6=9D=A5=E4=BA=86=E6=B2=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 96a7f09..5977f98 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,6 +19,8 @@ docker: DOCKER_HOST: tcp://docker:2375 DOCKER_DRIVER: overlay2 only: [master] + before_script: + - until docker info; do sleep 1; done script: - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker buildx create --use @@ -40,6 +42,8 @@ docker-tag: DOCKER_HOST: tcp://docker:2375 DOCKER_DRIVER: overlay2 only: [ tags ] + before_script: + - until docker info; do sleep 1; done script: - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker buildx create --use