diff --git a/gitlab/before_build.sh b/gitlab/before_build.sh
index 1d46495bf53ef80b2a946e1607d752ddc8551b65..93482fc0fe81caaa745a016f6e6c93729349171a 100755
--- a/gitlab/before_build.sh
+++ b/gitlab/before_build.sh
@@ -43,7 +43,7 @@ echo "Contents of \`${CONDARC}':"
 cat ${CONDARC}
 
 # updates conda installation
-run_cmd ${CONDA_ROOT}/bin/conda install python conda=4 curl conda-build=3
+run_cmd ${CONDA_ROOT}/bin/conda install python conda=4 curl conda-build=3.10.3
 
 # cleans up
 run_cmd ${CONDA_ROOT}/bin/conda clean --lock