Skip to content

Commit

Permalink
Adding env.json file to versioned files
Browse files Browse the repository at this point in the history
  • Loading branch information
neelimamukiri committed Mar 31, 2017
1 parent 1a7f3d6 commit 04ff366
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 04ff366

Please sign in to comment.