Skip to content

Commit

Permalink
Merge pull request #62 from openinfradev/use_private_registry
Browse files Browse the repository at this point in the history
add script for using private registry
  • Loading branch information
Jaesang committed Nov 16, 2021
2 parents 8a76e58 + 078ece5 commit b4019ce
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/use_private_registry.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

set -e

if [[ $# == 0 ]]; then
echo "./$0 container_registry_url"
exit 1
fi

REGISTRY=$1

for file in $(find . -name '*.yaml');do
sed -i "s/docker\.io/${REGISTRY}/g" $file
sed -i "s/k8s\.gcr\.io/${REGISTRY}/g" $file
done

0 comments on commit b4019ce

Please sign in to comment.