Skip to content

Commit

Permalink
fix freeze workflow (#522)
Browse files Browse the repository at this point in the history
Signed-off-by: Sun, Xuehao <[email protected]>
(cherry picked from commit 945b9e4)
  • Loading branch information
XuehaoSun authored and chensuyue committed Aug 21, 2024
1 parent b313245 commit bd0b5c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/scripts/freeze_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function replace_image_version() {
echo "version is empty"
else
echo "replace $repo_image:latest with $repo_image:$version"
find . -name "Dockerfile*" | xargs sed -i "s|$repo_image:latest.*|$repo_image:$version|g"
find . -name "Dockerfile*" | xargs sed -i "s|$repo_image:latest[A-Za-z0-9\-]*|$repo_image:$version|g"
find . -name "*.yaml" | xargs sed -i "s|$repo_image:latest[A-Za-z0-9\-]*|$repo_image:$version|g"
find . -name "*.md" | xargs sed -i "s|$repo_image:latest[A-Za-z0-9\-]*|$repo_image:$version|g"
fi
Expand Down

0 comments on commit bd0b5c5

Please sign in to comment.