From 04ff366d941a84fc59d9c3dc6724d0db7fd9c326 Mon Sep 17 00:00:00 2001 From: Neelima Mukiri Date: Fri, 31 Mar 2017 13:42:46 -0700 Subject: [PATCH] Adding env.json file to versioned files --- scripts/build.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 68c7bea..407bd07 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -90,12 +90,13 @@ git clone http://github.com/contiv/ansible popd # Replace versions -sed -i.bak "s/__ACI_GW_VERSION__/$aci_gw_version/g" $(find $output_dir -type f -name "*.yaml" -or -name "*.sh") -sed -i.bak "s/__API_PROXY_VERSION__/$auth_proxy_version/g" $(find $output_dir -type f -name "*.yaml" -or -name "*.sh") -sed -i.bak "s/__CONTIV_INSTALL_VERSION__/$ansible_image_version/g" $(find $output_dir -type f -name "*.yaml" -or -name "*.sh") -sed -i.bak "s/__CONTIV_VERSION__/$contiv_version/g" $(find $output_dir -type f -name "*.yaml" -or -name "*.sh") -sed -i.bak "s/__DOCKER_VERSION__/$docker_version/g" $(find $output_dir -type f -name "*.yaml" -or -name "*.sh") -sed -i.bak "s/__ETCD_VERSION__/$etcd_version/g" $(find $output_dir -type f -name "*.yaml" -or -name "*.sh") +files=$(find $output_dir -type f -name "*.yaml" -or -name "*.sh" -or -name "*.json") +sed -i.bak "s/__ACI_GW_VERSION__/$aci_gw_version/g" $files +sed -i.bak "s/__API_PROXY_VERSION__/$auth_proxy_version/g" $files +sed -i.bak "s/__CONTIV_INSTALL_VERSION__/$ansible_image_version/g" $files +sed -i.bak "s/__CONTIV_VERSION__/$contiv_version/g" $files +sed -i.bak "s/__DOCKER_VERSION__/$docker_version/g" $files +sed -i.bak "s/__ETCD_VERSION__/$etcd_version/g" $files # Make all shell script files executable chmod +x $(find $output_dir -type f -name "*.sh")