Skip to content

Instantly share code, notes, and snippets.

@JohnPreston
Created March 6, 2023 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnPreston/27508edcfb5f893dbf8620f75143e607 to your computer and use it in GitHub Desktop.
Save JohnPreston/27508edcfb5f893dbf8620f75143e607 to your computer and use it in GitHub Desktop.
VERSION=7.3.2;
for REPO_NAME in `aws --region us-east-1 ecr-public describe-repositories | jq -r .repositories[].repositoryName | grep confluentinc`; do
docker pull $REPO_NAME:$VERSION;
docker tag $REPO_NAME:$VERSION public.ecr.aws/ews-network/$REPO_NAME:$VERSION;
docker push public.ecr.aws/ews-network/$REPO_NAME:$VERSION;
done
for REPO_NAME in `aws --region us-east-1 ecr-public describe-repositories | jq -r .repositories[].repositoryName | grep confluentinc`; do
docker rmi public.ecr.aws/ews-network/$REPO_NAME:$VERSION;
docker rmi $REPO_NAME:$VERSION;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment