summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfumingwei <[email protected]>2024-06-06 19:42:57 +0800
committerfumingwei <[email protected]>2024-06-21 15:59:50 +0800
commita445f1f06252662951778047909a2ff03e4ebca8 (patch)
tree5684d6cd9d40681d48ec9f8b9d038eb6901ca53e
parent21be469b6311f00a3fca22c5f2172ca299a008ef (diff)
Bugfix: fix connect docker ce repo timeout.v24.02.24
-rw-r--r--.gitlab-ci.yml4
1 files changed, 4 insertions, 0 deletions
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