diff options
Diffstat (limited to 'vid-ext-services-simulator/pom.xml')
-rw-r--r-- | vid-ext-services-simulator/pom.xml | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/vid-ext-services-simulator/pom.xml b/vid-ext-services-simulator/pom.xml index d7a2436a6..dd962db46 100644 --- a/vid-ext-services-simulator/pom.xml +++ b/vid-ext-services-simulator/pom.xml @@ -28,6 +28,10 @@ <!-- "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> @@ -85,6 +89,14 @@ </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 --> <activation> @@ -195,7 +207,7 @@ <executions> <execution> <id>generate-image</id> - <phase>package</phase> + <phase>${dockerBuildPhase}</phase> <goals> <goal>build</goal> </goals> @@ -203,7 +215,7 @@ <execution> <id>push-image</id> - <phase>deploy</phase> + <phase>${dockerPushPhase}</phase> <goals> <goal>build</goal> <goal>push</goal> |