diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 66e0591afc9bc50fa1883632274983e3a1d57e76..ef532d2a2ebc8e2a1a11be5b9703c1e0be400474 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,12 +14,10 @@ build_image:
   services:
   - docker:dind
   script:
-    - docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
-    - docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_BUILD_TAG" .
-    - docker push "$CI_REGISTRY_IMAGE:$CI_BUILD_TAG"
+    - docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY
+    - docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG" .
+    - docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"
   only:
     - tags
   tags:
     - docker
-
-# simple edit to trigger this old pipeline again
\ No newline at end of file