build.xml: Add a “deploy” target.
Change-Id: I54da8f4a035b7dd758cc1dc4600a9d3a06d01756
diff --git a/build.xml b/build.xml
index f2ffccc..e725e69 100644
--- a/build.xml
+++ b/build.xml
@@ -62,6 +62,24 @@
</exec>
</target>
+ <target name="deploy">
+ <exec executable="./mvnw">
+ <arg value="docker:build"/>
+ <arg value="docker:push"/>
+ </exec>
+ <exec executable="kubectl">
+ <arg value="delete"/>
+ <arg value="pods"/>
+ <arg value="-lapp=mulkcms2"/>
+ </exec>
+ <exec executable="kubectl">
+ <arg value="get"/>
+ <arg value="pods"/>
+ <arg value="-lapp=mulkcms2"/>
+ <arg value="-w"/>
+ </exec>
+ </target>
+
<target name="clean">
<exec executable="./mvnw">
<arg value="clean"/>