diff options
Diffstat (limited to 'conductor')
-rw-r--r-- | conductor/pom.xml | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/conductor/pom.xml b/conductor/pom.xml index e914da3..5188397 100644 --- a/conductor/pom.xml +++ b/conductor/pom.xml @@ -1,6 +1,7 @@ <?xml version="1.0"?> <!-- Copyright (c) 2018 Intel Corporation. All rights reserved. + Copyright (c) 2020 AT&T Intellectual Property. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain @@ -69,6 +70,71 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.codehaus.groovy.maven</groupId> + <artifactId>gmaven-plugin</artifactId> + <version>1.0</version> + <executions> + <execution> + <phase>validate</phase> + <goals> + <goal>execute</goal> + </goals> + <configuration> + <source>${project.basedir}/../script/TagVersion.groovy</source> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>io.fabric8</groupId> + <artifactId>docker-maven-plugin</artifactId> + <version>0.26.0</version> + <configuration> + <verbose>true</verbose> + <apiVersion>1.23</apiVersion> + <images> + <image> + <name>${image.namespace}</name> + <alias>optf-has</alias> + <build> + <cleanup>true</cleanup> + <tags> + <tag>latest</tag> + <tag>${project.docker.latesttagtimestamp.version}</tag> + <tag>${project.docker.latesttag.version}</tag> + </tags> + + <dockerFile>${project.basedir}/docker/Dockerfile</dockerFile> + <args> + <MVN_ARTIFACT_VERSION>${project.version}</MVN_ARTIFACT_VERSION> + <REPO>${project.repo}</REPO> + </args> + </build> + </image> + </images> + </configuration> + <executions> + <execution> + <id>generate-images</id> + <phase>install</phase> + <goals> + <goal>build</goal> + </goals> + </execution> + <execution> + <id>push-images</id> + <phase>deploy</phase> + <goals> + <goal>build</goal> + <goal>push</goal> + </goals> + <configuration> + <image>${image.namespace}:%l</image> + </configuration> + </execution> + </executions> + </plugin> </plugins> </build> </project> |