summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-04-13 21:06:17 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-04-13 21:06:17 +0200
commit77138fa10b4241cdd0e4c0b0bc52a2392cf78570 (patch)
tree4e0a96da851cd8d3a3e1450a9c48a5daf483ef8f /build.xml
parent91505b22a11c8bcfa9f623f0700030b5caf9bdb5 (diff)
build.xml: Add a “deploy” target.
Change-Id: I54da8f4a035b7dd758cc1dc4600a9d3a06d01756
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml18
1 files changed, 18 insertions, 0 deletions
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"/>