diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ba6da839414cc78716789fca34a7e3b1741ea859..4fa5d9eba96c8f2e288ecdb1448570ebb6a74970 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,6 +2,7 @@ before_script:
   - git config --global url.https://.insteadOf git://
   - mkdir -p ~/.hex
   - printf "{key,<<\"$HEX_KEY\">>}.\n{username,<<\"$HEX_USERNAME\">>}.\n" > ~/.hex/hex.config
+  - mix local.hex --force
 
 stages:
   - compile