4.0.0 org.onap.policy.docker policy-common 2.0.0-SNAPSHOT pom policy-common-alpine Policy alpine common docker image Policy alpine common docker image ${project.artifactId}-${project.version} org.codehaus.groovy.maven gmaven-plugin 1.0 pre-clean execute println 'Project version: ' + project.properties['dist.project.version']; def versionArray; if ( project.properties['dist.project.version'] != null ) { versionArray = project.properties['dist.project.version'].split('-'); } if ( project.properties['dist.project.version'].endsWith("-SNAPSHOT") ) { project.properties['project.docker.latesttag.version']=versionArray[0] + "-SNAPSHOT-latest"; } else { project.properties['project.docker.latesttag.version']=versionArray[0] + "-STAGING-latest"; } println 'New tag for docker: ' + project.properties['project.docker.latesttag.version']; if ( "aarch64".equals(System.properties['os.arch']) ) { project.properties['project.docker.arch'] = "arm64"; } else { project.properties['project.docker.arch'] = System.properties['os.arch']; } println 'Using arch for docker: ' + project.properties['project.docker.arch']; io.fabric8 docker-maven-plugin 0.28.0 true 1.23 ${docker.pull.registry} ${docker.push.registry} onap/policy-common-alpine:latest-${project.docker.arch} try Dockerfile ${project.version}-${project.docker.arch} ${project.docker.latesttag.version}-${project.docker.arch} ${docker.build.version} clean-images pre-clean remove true generate-images generate-sources build push-images deploy build push onap/policy-common-alpine org.apache.maven.plugins maven-deploy-plugin true org.apache.maven.plugins maven-install-plugin true