diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9a420c325b659946ec4e272fcc75b4ed2ec26a6b..551805f6e10b22fdb8e3c84501f4d513b702f93b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,14 +11,14 @@ build:
   rules:
     - if: $CI_COMMIT_TAG
   script:
-    - echo "{\"auths\":{\"${DOCKERHUB_REGISTRY}\":{\"auth\":\"$(printf "%s:%s" "${DOCKERHUB_REGISTRY_USER}" "${DOCKERHUB_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
+    - echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(printf "%s:%s" "${CI_REGISTRY_USER}" "${CI_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
     - /kaniko/executor
       --context "${CI_PROJECT_DIR}"
       --dockerfile "${CI_PROJECT_DIR}/Dockerfile"
-      --destination "${DOCKERHUB_REPO}:${CI_COMMIT_TAG}"
+      --destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}"
     - |
-      cat << EOF  > deploy.env
-      DOCKER_IMAGE=${DOCKERHUB_REPO}:${CI_COMMIT_TAG}
+      cat << EOF > deploy.env
+      DOCKER_IMAGE=${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}
       EOF
   after_script:
     - cat deploy.env