| LINK=$(readlink "$(basename "$1")") |
| LINK=$(readlink "$(basename "$1")") |
| REALPATH="$PWD/$(basename "$1")" |
| echo This script updates OOM helm charts to use versions in docker-manifest.csv |
| echo "$0 <docker-manifest.csv> <oom repo directory>" |
| if [ -z "$WORKSPACE" ]; then |
| export WORKSPACE=`git rev-parse --show-toplevel` |
| for line in $(tail -n +2 $MANIFEST); do |
| image=$(echo $line | cut -d , -f 1) |
| tag=$(echo $line | cut -s -d , -f 2) |
| perl -p -i -e "s|$image(:.*$\|$)|$image:$tag|g" $(find ./ -name values.yaml) |