diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8773c0896e85745d0ea4630c95b92e4085213967..63f6976104c1c539d7ac9e9ec5e0f9f97e9bb0b5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -711,7 +711,7 @@ terminate-droplet:
     # Delete droplet
     - python3 -c "import greenhost_cloud; greenhost_cloud.terminate_droplets_by_name(\"^${CI_COMMIT_REF_SLUG}\")"
     # Delete container if one was created
-    - "if [ ! -z \"$CI_CONTAINER_TAG\" ]; then curl --request DELETE --header \"PRIVATE-TOKEN: ${CLEANER_TOKEN}\" https://open.greenhost.net/api/v4/projects/openappstack%2Fopenappstack/registry/repositories/2/tags/${CI_CONTAINER_TAG}; fi"
+    - "if [ \"$CI_CONTAINER_TAG\" != \"master\" ]; then curl --request DELETE --header \"PRIVATE-TOKEN: ${CLEANER_TOKEN}\" https://open.greenhost.net/api/v4/projects/openappstack%2Fopenappstack/registry/repositories/2/tags/${CI_CONTAINER_TAG}; fi"
   environment:
     name: $CI_COMMIT_REF_SLUG
     action: stop