adding config-generator to gradle build

Change-Id: Icbcc0ede08b59830531f4183b11336ae2ab2f845
Signed-off-by: gunjan5 <gupatel@ciena.com>
diff --git a/build.gradle b/build.gradle
index 8afd0da..caeb968 100644
--- a/build.gradle
+++ b/build.gradle
@@ -129,6 +129,22 @@
     commandLine "$dockerPath/docker", 'push', "$targetReg/cord-provisioner:$targetTag"
 }
 
+// Config Generator Image
+
+task buildConfigGeneratorImage(type: Exec) {
+    commandLine "$dockerPath/docker", 'build', '-t', 'config-generator', './config-generator'
+}
+
+task tagConfigGeneratorImage(type: Exec) {
+   dependsOn buildConfigGeneratorImage
+   commandLine "$dockerPath/docker", 'tag', 'config-generator', "$targetReg/config-generator:$targetTag"
+}
+
+task publishConfigGeneratorImage(type: Exec) {
+    dependsOn tagConfigGeneratorImage
+    commandLine "$dockerPath/docker", 'push', "$targetReg/config-generator:$targetTag"
+}
+
 // Automation Image
 
 task buildAutomationImage(type: Exec) {
@@ -184,6 +200,7 @@
     dependsOn buildAutomationImage
     dependsOn buildAllocationImage
     dependsOn buildProvisionerImage
+    dependsOn buildConfigGeneratorImage
     dependsOn buildSwitchqImage
 }
 
@@ -193,6 +210,7 @@
     dependsOn tagAutomationImage
     dependsOn tagAllocationImage
     dependsOn tagProvisionerImage
+    dependsOn tagConfigGeneratorImage
     dependsOn tagSwitchqImage
 }
 
@@ -203,6 +221,7 @@
     dependsOn publishAutomationImage
     dependsOn publishAllocationImage
     dependsOn publishProvisionerImage
+    dependsOn publishConfigGeneratorImage
     dependsOn publishSwitchqImage
 }