diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b22b20b313bd7ec0731193cdf64cbcaab9b11d07..6f48aad854d50521dee6e8b6dbac209464da51f2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -31,6 +31,7 @@ build:
   before_script:
     # install envsubst
     # python:3.10 is based on debian bullseye
+    - apt-get update
     - apt-get install -y gettext-base
     - apt-get install -y python3-venv 
     - python3 -m pip install --upgrade build
diff --git a/pyproject.tmpl b/pyproject.tmpl
index d62e118b467c907296bad6d083bafc11b07faf60..1188f5d0edf3d8f5f98c7cbf6535b986bde91180 100644
--- a/pyproject.tmpl
+++ b/pyproject.tmpl
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
 
 [project]
 name = "Dokos"
-version = "0.0.3"
+version = "$CI_COMMIT_TAG"
 authors = [
   { name="Thibault Debatty", email="t.debatty@cylab.be" },
 ]