diff options
author | Sudhakar Reddy <Sudhakar.Reddy@amdocs.com> | 2019-07-15 19:03:20 +0530 |
---|---|---|
committer | Sudhakar Reddy <Sudhakar.Reddy@amdocs.com> | 2019-07-15 19:03:20 +0530 |
commit | 5e074b04e650521e8bc20d3ec8170ab588449595 (patch) | |
tree | 2063b31615d7a03d343508b1985c58b04d96b6d3 | |
parent | 833696479f69255cd58eb5cfe7b729e15a640fef (diff) |
Migrate docker job for azure plugin
Change-Id: I2a6f5074352995bfa474b669e7b6ddf924b51d93
Issue-ID: MULTICLOUD-704
Signed-off-by: Sudhakar Reddy <Sudhakar.Reddy@amdocs.com>
-rw-r--r-- | azure/pom.xml | 73 |
1 files changed, 72 insertions, 1 deletions
diff --git a/azure/pom.xml b/azure/pom.xml index 5ab7a8e..4fd5ce6 100644 --- a/azure/pom.xml +++ b/azure/pom.xml @@ -52,6 +52,77 @@ </executions> </plugin> </plugins> - </build> + <profiles> + <profile> + <id>docker</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-resources-plugin</artifactId> + <version>3.1.0</version> + <executions> + <execution> + <id>copy-resources</id> + <phase>validate</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory>${project.basedir}/docker_target</outputDirectory> + <resources> + <resource> + <directory>${project.basedir}/docker</directory> + <filtering>true</filtering> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.6</version> + <executions> + <execution> + <phase>install</phase> + <inherited>false</inherited> + <configuration> + <target> + <exec executable="docker"> + <arg value="build"/> + <arg value="-t"/> + <arg value="${CONTAINER_PUSH_REGISTRY}/onap/multicloud/azure:${project.version}"/> + <arg value="docker_target"/> + </exec> + <exec executable="docker"> + <arg value="tag"/> + <arg value="${CONTAINER_PUSH_REGISTRY}/onap/multicloud/azure:${project.version}"/> + <arg value="${CONTAINER_PUSH_REGISTRY}/onap/multicloud/azure:latest"/> + </exec> + <exec executable="docker"> + <arg value="push"/> + <arg value="${CONTAINER_PUSH_REGISTRY}/onap/multicloud/azure:${project.version}"/> + </exec> + <exec executable="docker"> + <arg value="push"/> + <arg value="${CONTAINER_PUSH_REGISTRY}/onap/multicloud/azure:latest"/> + </exec> + </target> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + </profile> + </profiles> </project> |