diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e9c4705e2255e727a3ba8f7a7fec8574be57d4c1..f1b8be4673edf49ea8ae1e78adcff70528d6be21 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -35,6 +35,7 @@ test:
 pages:  # "pages" is a job specifically for GitLab pages [1]
   stage:  # build, test, deploy defined by default [2]
     deploy
+  image: continuumio/anaconda3:latest
   script:  # use sphinx to build docs, move to public page
   - apt-get update
   - pip install --upgrade pip
diff --git a/update_pyproject.py b/update_pyproject.py
index 03c013443e6da701f777ba09b7c7053d72b6f053..065a0ce4a48c51dd1c2fb3e0f15a2ffdd8b78ae4 100644
--- a/update_pyproject.py
+++ b/update_pyproject.py
@@ -15,7 +15,12 @@ with open("README.md") as f:
 # Getting the package version.
 repo = git.cmd.Git("./")
 v = repo.describe("--tags").split("-")
-version_string = f"{v[0]}.dev{v[1]}+{v[2]}"
+if len(v)>1:
+    # Development/untagged version
+    version_string = f"{v[0]}.dev{v[1]}+{v[2]}"
+elif len(v)==1:
+    # Tagged version
+    version_string = f"{v[0]}"
 
 
 # %% Applying the information to the template