diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a9348288f87cdb9497e6cee4e54efe12a49dbf5d..6a69743977a24f498d7bc7c0931049c81ee80504 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -459,8 +459,9 @@ clean-images:
     - "echo ${CI_REGISTRY_PASSWORD} | docker login --username ${CI_REGISTRY_USER} --password-stdin ${CI_REGISTRY_URL}"
     - "docker logout ${CI_REGISTRY2_URL}"
     - "echo ${CI_REGISTRY2_PASSWORD} | docker login --username ${CI_REGISTRY2_USER} --password-stdin ${CI_REGISTRY2_URL}"
-    - echo "@testing https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
-    - "apk add --no-cache bash regclient"
+    - "apk add --no-cache curl bash"
+    - "curl -fsSL -O /usr/local/sbin/regctl https://github.com/regclient/regclient/releases/download/v0.8.2/regctl-linux-amd64"
+    - "chmod +x /usr/local/sbin/regctl"
   script:
     - bash ./.gitlab/remove-unsupported-images.sh