diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cf950c33fb9a94e5704761da17a5c127db8b91e9..f3cfef78c97f81fa5595e7fbb5abe0bfac3b153c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -15,8 +15,8 @@ compile:
   variables:
     GOPATH: $CI_PROJECT_DIR/.go
   before_script:
-    - git fetch --tags
     - apk add --no-cache git gcc g++ libseccomp-dev libseccomp-static
+    - git fetch --tags
     - mkdir -p .go
   cache:
     paths: