Created
August 26, 2019 13:51
-
-
Save omerh/75454f0157d4cbf9d8e7cfea6ab7ddf5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ecr_login="$(aws ecr get-login --no-include-email --region eu-west-2)" | |
kubectl create secret docker-registry ecr \ | |
--docker-username=`echo $ecr_login | awk '{print $4}'` \ | |
--docker-password=`echo $ecr_login | awk '{print $6}'` \ | |
--docker-server=`echo $ecr_login | awk '{print $7}'` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment