Allow testing of osm-krm-functions by updating the image used by workflow templates during full installation
Change-Id: I9d734db6447cbc1c60feef98fe479e35ed9278f4
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/installers/30-deploy-mgmt-cluster.sh b/installers/30-deploy-mgmt-cluster.sh
index f99c6f9..f5697b7 100755
--- a/installers/30-deploy-mgmt-cluster.sh
+++ b/installers/30-deploy-mgmt-cluster.sh
@@ -115,6 +115,10 @@
TEMPLATES_DIR=$(readlink -f "${TEMPLATES_DIR}")
# rsync -varhP "${TEMPLATES_DIR}" "${SW_CATALOGS_REPO_DIR}/"
cp -r "${TEMPLATES_DIR}"/* "${SW_CATALOGS_REPO_DIR}/"
+if [ -n "${OSM_DOCKER_TAG}" ]; then
+ # Replace the OSM Docker tag in the WF templates
+ find "${SW_CATALOGS_REPO_DIR}/infra-configs/osm-workflows/templates/wf-templates/building-blocks" -type f -name "*.yaml" -exec sed -i "s|opensourcemano/osm-krm-functions:testing-daily|${DOCKER_REGISTRY_URL}${DOCKER_USER}/osm-krm-functions:${OSM_DOCKER_TAG}|g" {} +
+fi
#####################################################################