Skip to content

Commit d739f5f

Browse files
committed
chore(workflow): delete retired mirrors
1 parent dfba51f commit d739f5f

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

_scripts/install.sh

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ init_arch() {
1919

2020
function clean_before_exit {
2121
# delay before exiting, so stdout/stderr flushes through the logging system
22-
rm -rf /tmp/drycc-values.yaml
22+
rm -rf /tmp/drycc-values.yaml /etc/rancher/k3s/registries.yaml
2323
configure_registries runtime
2424
systemctl restart k3s
2525
sleep 3
@@ -62,8 +62,6 @@ function configure_registries {
6262
mirrors:
6363
"docker.io":
6464
endpoint:
65-
- "https://mirror.baidubce.com"
66-
- "https://docker.mirrors.ustc.edu.cn"
6765
- "https://hub-mirror.c.163.com"
6866
- "https://registry-1.docker.io"
6967
EOF
@@ -202,16 +200,10 @@ imagebuilder:
202200
short-name-mode="permissive"
203201
[[registry]]
204202
prefix = "docker.io"
205-
location = "docker-mirror.drycc.cc"
206-
[[registry]]
207-
prefix = "quay.io"
208-
location = "quay-mirror.drycc.cc"
209-
[[registry]]
210-
prefix = "gcr.io"
211-
location = "gcr-mirror.drycc.cc"
212-
[[registry]]
213-
prefix = "k8s.gcr.io"
214-
location = "k8s-mirror.drycc.cc"
203+
location = "registry-1.docker.io"
204+
[[registry.mirror]]
205+
prefix = "docker.io"
206+
location = "hub-mirror.c.163.com"
215207
EOF
216208
else
217209
cat << EOF > "/tmp/drycc-values.yaml"

0 commit comments

Comments
 (0)