diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0ec8a659dae4f97dab253c79d2021d46fc91fdc6..6bf3629cbe59ba2318c88d5ca12e120978037f2e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -26,7 +26,7 @@ stages:
 
 build-job:
   stage: build
-  image: python:3.10.6
+  image: python:3.11.7
   script:
     - python -V
     - pip install virtualenv
@@ -40,14 +40,14 @@ build-job:
 
 test-job1:
   stage: test
-  image: python:3.10.6
+  image: python:3.11.7
   script:
     - source venv/bin/activate
     - flake8 --config .flake8
 
 test-job2:
   stage: test
-  image: python:3.10.6
+  image: python:3.11.7
   script:
     - source venv/bin/activate
     - which python
@@ -83,14 +83,14 @@ deploy-to-production:
     - git stash  # "reset" softly by stashing (in case files changed)
     - git pull origin production  # pull from origin (production branch)
     - echo "Creating new virtual environment"
-    - python3.10 -m venv venv
+    - python3.11 -m venv venv
     - source venv/bin/activate
     - which python
     - python -V
     - echo "Installing requirements"
     - pip install -r requirements.txt
     - echo "Handling migrations"
-    - nacsos_migrate upgrade --revision head --root-path=/var/www/nacsos2/nacsos-core/venv/lib/python3.10/site-packages/nacsos_data --ini-file=/var/www/nacsos2/nacsos-core/config/alembic.ini
+    - nacsos_migrate upgrade --revision head --root-path=/var/www/nacsos2/nacsos-core/venv/lib/python3.11/site-packages/nacsos_data --ini-file=/var/www/nacsos2/nacsos-core/config/alembic.ini
     - sudo chown -R nacsos:nacsos /var/www/nacsos2/nacsos-core
     - echo "Starting NACSOS-core service"
     - sudo systemctl start nacsos-core.service