diff --git a/variables.sh b/variables.sh
index d3ea276b87581d19752dbe079fada231a0119566..ebfd8d54531778a0325439391cf98a67682368df 100644
--- a/variables.sh
+++ b/variables.sh
@@ -1,5 +1,5 @@
 # Set the docker image tag to the current branch:
-dockerTag=$(git rev-parse --abbrev-ref HEAD)
+dockerTag=$(git rev-parse --abbrev-ref HEAD | cut -c "-63")
 
 # Only get the number from the issue (or whatever is in front of a dash
 # otherwise) for the release name