summaryrefslogtreecommitdiffstats
path: root/authz-service/pom.xml
diff options
context:
space:
mode:
authorsg481n <sg481n@att.com>2017-09-24 02:12:15 +0000
committersg481n <sg481n@att.com>2017-09-24 02:15:31 +0000
commit1e538f732ed8c5845798a4a4482410e7afd36cf7 (patch)
tree802f24b2041e732f4d37554d173e19b97052f4fc /authz-service/pom.xml
parent2bc353807bf3f6db1ee4b7000839432c467b1c75 (diff)
Modify Authz-service pom file to releaser docker
POM file updated in authz-service to release docker image of AAF. profile added to pom file. Change-Id: I5799333e7e966cdabe217371c7073b04b5ec2430 Issue-id: AAF-59 Signed-off-by: sg481n <sg481n@att.com>
Diffstat (limited to 'authz-service/pom.xml')
-rw-r--r--authz-service/pom.xml63
1 files changed, 44 insertions, 19 deletions
diff --git a/authz-service/pom.xml b/authz-service/pom.xml
index 674f4101..607f161e 100644
--- a/authz-service/pom.xml
+++ b/authz-service/pom.xml
@@ -70,6 +70,9 @@
<releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
<stagingNexusPath>/content/repositories/staging/</stagingNexusPath>
<sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>
+ <skip.docker.build>false</skip.docker.build>
+ <skip.docker.tag>false</skip.docker.tag>
+ <skip.docker.push>false</skip.docker.push>
</properties>
@@ -141,23 +144,25 @@
</dependency>
</dependencies>
-
+ <profiles>
+ <profile>
+
<build>
<plugins>
- <plugin>
+ <plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.4.11</version>
<configuration>
<imageName>onap/aaf/authz-service</imageName>
<dockerDirectory>${dockerLocation}</dockerDirectory>
- <serverId>docker-hub</serverId>
- <registryUrl>https://${docker.registry}</registryUrl>
+ <serverId>docker-hub</serverId>
<imageTags>
<imageTag>${project.version}</imageTag>
<imageTag>latest</imageTag>
</imageTags>
+ <forceTags>true</forceTags>
<resources>
<resource>
<targetPath>/</targetPath>
@@ -167,15 +172,44 @@
<include>**/*</include>
</includes>
</resource>
- </resources>
- <forceTags>true</forceTags>
+ </resources>
</configuration>
+ <executions>
+ <execution>
+ <id>build-image</id>
+ <phase>package</phase>
+ <goals>
+ <goal>build</goal>
+ </goals>
+ <configuration>
+ <skipDockerBuild>${skip.docker.build}</skipDockerBuild>
+ <buildArgs>
+ <http_proxy>${env.HTTP_PROXY}</http_proxy>
+ <https_proxy>${env.HTTPS_PROXY}</https_proxy>
+ </buildArgs>
+ </configuration>
+ </execution>
+ <execution>
+ <id>docker</id>
+ <phase>deploy</phase>
+ <goals>
+ <goal>push</goal>
+ </goals>
+ <configuration>
+ <imageName>onap/aaf/authz-service</imageName>
+ <skipDockerPush>${skip.docker.push}</skipDockerPush>
+ </configuration>
+ </execution>
+
+ </executions>
</plugin>
+
+
<plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.7</version>
- <executions>
- <execution>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.7</version>
+ <executions>
+ <execution>
<id>copy-docker-file</id>
<phase>package</phase>
<goals>
@@ -464,15 +498,6 @@
</plugins>
</build>
- <profiles>
- <profile>
- <id>docker</id>
- <properties>
- <skip.staging.artifacts>true</skip.staging.artifacts>
- <skip.docker.build>false</skip.docker.build>
- <skip.docker.tag>false</skip.docker.tag>
- <skip.docker.push>false</skip.docker.push>
- </properties>
</profile>
</profiles>