diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 72a4f3a7f1e7226e0423d93fbb36b99d6268503d..5e35ca917cf91d49454a34b222d51a730b243786 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,8 +9,8 @@ before_script:
    ## Install ssh-agent if not already installed, it is required by Docker.
    ## (change apt-get to yum if you use an RPM-based image)
    ##
-   - 'which ssh-agent || (pacman -S --noconfirm openssh)'
-   - 'which rsync || (pacman -S --noconfirm rsync)'
+   - 'which ssh-agent || (apk add --update rsync)'
+   - 'which rsync || (apk add --update rsync)'
 
 
    ##