Skip to content
Snippets Groups Projects
Commit 1fbff895 authored by Sheng Yang's avatar Sheng Yang Committed by Sheng Yang
Browse files

deploy: Add update_image.sh


Signed-off-by: default avatarSheng Yang <sheng.yang@rancher.com>
parent af1a80a9
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
set -e
base="${GOPATH}/src/github.com/rancher/local-path-provisioner"
files=`find ${base}/deploy/ |grep yaml |sort`
project="rancher\/local-path-provisioner"
latest=`cat ${base}/bin/latest_image`
echo latest image ${latest}
escaped_image=${latest//\//\\\/}
for f in $files
do
sed -i "s/image\:\ ${project}:.*/image\:\ ${escaped_image}/g" $f
sed -i "s/-\ ${project}:.*/-\ ${escaped_image}/g" $f
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment