diff options
author | Dan Timoney <dtimoney@att.com> | 2017-04-25 08:43:30 -0400 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2017-04-25 09:04:41 -0400 |
commit | 687146e4c55b019970e4e642d572ebb3285486ca (patch) | |
tree | ddc5415424d9a9d1190c9c5d18bf54dfb7937013 /installation/dgbuilder/pom.xml | |
parent | 8f77351687ce1bb10420c97ce40dd9fb73e6bd06 (diff) |
[DOCKER] Fix docker config
Fix docker config error in pom.xml
Change-Id: I806c4e3f383da2be01d9ea6743807929c5378a15
Signed-off-by: Dan Timoney <dtimoney@att.com>
Former-commit-id: d4698382607eb0df3e87a0a1ee29937c8d85fe39
Diffstat (limited to 'installation/dgbuilder/pom.xml')
-rw-r--r-- | installation/dgbuilder/pom.xml | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/installation/dgbuilder/pom.xml b/installation/dgbuilder/pom.xml index 73963bc6..953e309e 100644 --- a/installation/dgbuilder/pom.xml +++ b/installation/dgbuilder/pom.xml @@ -41,19 +41,14 @@ println project.properties['sdnc.project.version']; def versionArray; if ( project.properties['sdnc.project.version'] != null ) { - versionArray = - project.properties['sdnc.project.version'].split('\\.'); + versionArray = + project.properties['sdnc.project.version'].split('\\.'); } - if ( - project.properties['sdnc.project.version'].endsWith("-SNAPSHOT") - ) - { - project.properties['project.docker.latesttag.version']=versionArray[0] - + '.' + versionArray[1] + "-SNAPSHOT-latest"; + if (project.properties['sdnc.project.version'].endsWith("-SNAPSHOT")) { + project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-SNAPSHOT-latest"; } else { - project.properties['project.docker.latesttag.version']=versionArray[0] - + '.' + versionArray[1] + "-STAGING-latest"; + project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest"; } println 'New Tag for docker:' + @@ -78,6 +73,7 @@ <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir> <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile> <tags> + <tag>${project.version}</tag> <tag>${project.version}-STAGING-${maven.build.timestamp}</tag> <tag>${project.docker.latesttag.version}</tag> </tags> |