Build module vid-ext-services-simulator
[vid.git] / vid-ext-services-simulator / pom.xml
index d7a2436..dd962db 100644 (file)
 
         <!-- "none" will skip cobertura by default; enable the profile "cobertura" to enable it -->
         <coberturaBuildPhase>none</coberturaBuildPhase>
+
+        <!-- will skip docker-maven-plugin by default; enable the profile "docker" to enable it -->
+        <dockerBuildPhase>none</dockerBuildPhase>
+        <dockerPushPhase>none</dockerPushPhase>
     </properties>
 
     <profiles>
             </properties>
         </profile>
 
+        <profile>
+            <id>docker</id>
+            <properties>
+                <dockerBuildPhase>package</dockerBuildPhase>
+                <dockerPushPhase>deploy</dockerPushPhase>
+            </properties>
+        </profile>
+
         <profile>
             <id>docker-proxy</id>
             <!-- activate profile if environment variable `http_proxy` is set -->
                 <executions>
                     <execution>
                         <id>generate-image</id>
-                        <phase>package</phase>
+                        <phase>${dockerBuildPhase}</phase>
                         <goals>
                             <goal>build</goal>
                         </goals>
 
                     <execution>
                         <id>push-image</id>
-                        <phase>deploy</phase>
+                        <phase>${dockerPushPhase}</phase>
                         <goals>
                             <goal>build</goal>
                             <goal>push</goal>