Skip to content

Commit

Permalink
add script for using private registry
Browse files Browse the repository at this point in the history
  • Loading branch information
zugwan committed Nov 15, 2021
1 parent 8a76e58 commit 86e3407
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions 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 86e3407

Please sign in to comment.