fixing ordering

Change-Id: Ia6388be35ab1a4763e2717771175b647fa400930
diff --git a/build.gradle.new b/build.gradle.new
index fa2f2e6..2dfc4b9 100644
--- a/build.gradle.new
+++ b/build.gradle.new
@@ -117,12 +117,10 @@
 }
 
 tasks.addRule(new DockerFetchRule(project))
-tasks.addRule(new DockerPublishRule(project))
+tasks.addRule(new DockerPublishRule(project, project(':maas').prime))
 tasks.addRule(new DockerTagRule(project))
-tasks.addRule(new GitSubmoduleUpdateRule(project))
 
 project('platform-install').deployPlatform.dependsOn project(':maas').deployBase
-publishImages.mustRunAfter project(':maas').prime 
 
 task deploy  {
     dependsOn << project(':platform-install').deployPlatform