From aae0f65e89b3c32e684f9b5d3f4db4cce6542b40 Mon Sep 17 00:00:00 2001 From: fumingwei Date: Thu, 6 Jun 2024 19:42:57 +0800 Subject: [PATCH] Bugfix: fix connect docker ce repo timeout. --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0e0a3419..b4f28d94 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,6 +14,7 @@ stages: .build_tsg-buildimage: script: - env | sort + - sed -i 's+https://download.docker.com+https://mirrors.tuna.tsinghua.edu.cn/docker-ce+' /etc/yum.repos.d/docker-ce.repo - yum -y install pbzip2 ansible - make DALIY_BUILD_VERSION=$DALIY_BUILD_VERSION - chmod +x ./tools/upload.sh @@ -24,6 +25,7 @@ stages: .build_onie_bin_x86_64_COTS: script: - env | sort + - sed -i 's+https://download.docker.com+https://mirrors.tuna.tsinghua.edu.cn/docker-ce+' /etc/yum.repos.d/docker-ce.repo - yum -y install pbzip2 python39 - python3.9 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple ansible - make DALIY_BUILD_VERSION=$DALIY_BUILD_VERSION @@ -35,6 +37,7 @@ stages: .build_container_images_x86_64_COTS: script: - env | sort + - sed -i 's+https://download.docker.com+https://mirrors.tuna.tsinghua.edu.cn/docker-ce+' /etc/yum.repos.d/docker-ce.repo - yum -y remove docker-ce - yum -y install pbzip2 buildah podman python39 - python3.9 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple ansible @@ -61,6 +64,7 @@ stages: paths: - images/ script: + - sed -i 's+https://download.docker.com+https://mirrors.tuna.tsinghua.edu.cn/docker-ce+' /etc/yum.repos.d/docker-ce.repo - yum install -y qemu-img qemu-kvm telnet net-tools procps-ng httpd - find / -name images - ls -lh