diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6fd748c8c3f524c2cd020d8f675f00c1e0da5b3f..9346e54ffa57b761fa080b3d24f0d96504fc84db 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -27,25 +27,25 @@ stages:
   script:
     - mkdir -p /kaniko/.docker
     - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-    - /kaniko/executor --whitelist-var-run=false --context $CI_PROJECT_DIR/.ci/synapse --dockerfile $CI_PROJECT_DIR/.ci/synapse/Dockerfile --destination $CI_REGISTRY_IMAGE/synapse-${CMAKE_ARCH}:latest
+    - /kaniko/executor --whitelist-var-run=false --context $CI_PROJECT_DIR/.ci/synapse --dockerfile $CI_PROJECT_DIR/.ci/synapse/Dockerfile --destination $CI_REGISTRY_IMAGE/synapse-${M_ARCH}:latest
 
 build synapse amd64:
   extends: .build-synapse-image
   tags: [docker]
   variables:
-    CMAKE_ARCH: x86_64
+    M_ARCH: x86_64
 
 build synapse arm64:
   extends: .build-synapse-image
   tags: [docker-arm64]
   variables:
-    CMAKE_ARCH: aarch64
+    M_ARCH: aarch64
 
 .build-linux:
   stage: build
   image: ubuntu:16.04
   services:
-    - name: $CI_REGISTRY_IMAGE/synapse-${CMAKE_ARCH}:latest
+    - name: $CI_REGISTRY_IMAGE/synapse-${M_ARCH}:latest
       alias: synapse
   variables:
     CXX: g++-8
@@ -58,7 +58,7 @@ build synapse arm64:
     - apt-get update && apt-get -y install --no-install-recommends ${CXX} ${CC} build-essential ninja-build libssl-dev git ccache curl
     # need recommended deps for wget
     - apt-get -y install wget
-    - wget https://github.com/Kitware/CMake/releases/download/v3.19.6/cmake-3.19.6-Linux-${CMAKE_ARCH}.sh && sh cmake-3.19.6-Linux-${CMAKE_ARCH}.sh  --skip-license  --prefix=/usr/local
+    - wget https://github.com/Kitware/CMake/releases/download/v3.19.6/cmake-3.19.6-Linux-${M_ARCH}.sh && sh cmake-3.19.6-Linux-${M_ARCH}.sh  --skip-license  --prefix=/usr/local
     - /usr/sbin/update-ccache-symlinks
     - update-alternatives --install /usr/bin/gcc gcc "/usr/bin/${CC}" 10
     - update-alternatives --install /usr/bin/g++ g++ "/usr/bin/${CXX}" 10
@@ -94,13 +94,13 @@ build linux amd64:
   extends: .build-linux
   tags: [docker]
   variables:
-    CMAKE_ARCH: x86_64
+    M_ARCH: x86_64
 
 build linux arm64:
   extends: .build-linux
   tags: [docker-arm64]
   variables:
-    CMAKE_ARCH: aarch64
+    M_ARCH: aarch64
 
 build-macos:
   stage: build