From: sourabh_sourabh Date: Wed, 11 Jun 2025 09:22:19 +0000 (+0100) Subject: Add Docker image build configuration with dynamic tagging and base image reference X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=3419cb4052f3cd578ee411d4f2fc5917a841528a;p=cps%2Fncmp-dmi-plugin.git Add Docker image build configuration with dynamic tagging and base image reference - 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 --- diff --git a/dmi-service/pom.xml b/dmi-service/pom.xml index bc41ca5e..a0bd9543 100644 --- a/dmi-service/pom.xml +++ b/dmi-service/pom.xml @@ -656,7 +656,7 @@ latest - ${project.version}-latest + ${project.version} ${docker.push.registry}/onap/${image.name}:${image.tag} diff --git a/dmi-stub/dmi-stub-app/pom.xml b/dmi-stub/dmi-stub-app/pom.xml index ff83c157..ae293d9f 100644 --- a/dmi-stub/dmi-stub-app/pom.xml +++ b/dmi-stub/dmi-stub-app/pom.xml @@ -100,6 +100,7 @@ latest + ${project.version} ${docker.push.registry}/onap/${image.name}:${image.tag} diff --git a/docker-compose/docker-compose.yml b/docker-compose/docker-compose.yml index 7411c246..424a36ec 100755 --- a/docker-compose/docker-compose.yml +++ b/docker-compose/docker-compose.yml @@ -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: