removing doLast

Change-Id: I3896829ed9265d41162a296fb0123884bcb3d54e
diff --git a/build.gradle b/build.gradle
index 6384a48..5064cf5 100644
--- a/build.gradle
+++ b/build.gradle
@@ -165,12 +165,12 @@
     dependsOn buildRepoImage
 }
 
-task publish (dependsOn: buildImages) {
+task publish {
+    dependsOn buildImages
     dependsOn publishMavenRepoImage
 }
 
 task deploy (type: Exec) {
-    doLast {
         println "Using deployment config: $deployConfig"
         File configFile = new File(deployConfig)
         def yaml = new Yaml()
@@ -205,7 +205,6 @@
         def skipTags = [].p(config.seedServer.skipTags)
 
         args = args.p(skipTags.asParam("skip-tags", ",")).p(extraVars.asParam("extra-vars", " ")) << "mavenrepo.yml"   
-    }
 }
 
 
diff --git a/roles/mavenrepo/templates/mavenrepo.yml.j2 b/roles/mavenrepo/templates/mavenrepo.yml.j2
index b8d8e1e..8195635 100644
--- a/roles/mavenrepo/templates/mavenrepo.yml.j2
+++ b/roles/mavenrepo/templates/mavenrepo.yml.j2
@@ -1,5 +1,5 @@
 mavenrepo:
-    image: "docker-registry/mavenrepo:{{ docker.image_version }}"
+    image: "docker-registry:5000/mavenrepo:{{ docker.image_version }}"
     container_name: mavenrepo
     ports:
       - "8080:80"