Add Docker image build configuration with dynamic tagging and base image reference 41/141241/3
authorsourabh_sourabh <sourabh.sourabh@est.tech>
Wed, 11 Jun 2025 09:22:19 +0000 (10:22 +0100)
committersourabh_sourabh <sourabh.sourabh@est.tech>
Thu, 12 Jun 2025 11:29:33 +0000 (12:29 +0100)
- Defined target image using `${docker.push.registry}/onap/${image.name}:${image.tag}` format.
- Ensures consistent image versioning and reproducible builds for deployment pipelines.

Issue-ID: CPS-2837
Change-Id: I94928d2505d37cf3b847ffbac9f1f8996f7b1936
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
dmi-service/pom.xml
dmi-stub/dmi-stub-app/pom.xml
docker-compose/docker-compose.yml

index bc41ca5..a0bd954 100644 (file)
                         <to>
                             <tags>
                                 <tag>latest</tag>
-                                <tag>${project.version}-latest</tag>
+                                <tag>${project.version}</tag>
                             </tags>
                             <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
                         </to>
index ff83c15..ae293d9 100644 (file)
                         <to>
                             <tags>
                                 <tag>latest</tag>
+                                <tag>${project.version}</tag>
                             </tags>
                             <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
                         </to>
index 7411c24..424a36e 100755 (executable)
@@ -20,7 +20,7 @@
 services:
   ncmp-dmi-plugin:
     container_name: ncmp-dmi-plugin
-    image: ${DOCKER_REPO:-nexus3.onap.org:10003}/onap/ncmp-dmi-plugin:${DMI_VERSION:-1.8.0-SNAPSHOT-latest}
+    image: ${DOCKER_REPO:-nexus3.onap.org:10003}/onap/ncmp-dmi-plugin:${DMI_VERSION:-1.8.0-SNAPSHOT}
     ports:
       - ${DMI_PORT:-8783}:8080
     environment: