diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 41eebcdfa3554866d7bca43fb27a39328c9535b9..35aa8ef248937d4da67476f4a30e6d3484226d18 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,4 @@
-image: ocaml/opam2:ubuntu-18.04-ocaml-4.07
+image: ocaml/opam2:ubuntu-18.04-ocaml-4.08
 
 variables:
   GIT_STRATEGY: clone
@@ -13,6 +13,9 @@ stages:
 build_and_test:
   stage: build
   script:
+    - opam repo add official-repo "https://opam.ocaml.org"
+    - opam repository add official-repo --set-default
+    - opam update
     - opam depext dune ocamlfind
     - opam install dune ocamlfind num
     - make