Skip to content

Commit

Permalink
fix for #7, registry ID not being used to renew token
Browse files Browse the repository at this point in the history
  • Loading branch information
catalinpan committed Dec 10, 2018
1 parent 71cfaba commit d8f8f32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configs/auth_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ nx_conf=/etc/nginx/nginx.conf
# update the auth token
auth=$(grep X-Forwarded-User ${nx_conf} | awk '{print $4}'| uniq|tr -d "\n\r")
if [ "$REGISTRY_ID" = "" ]
then
then
token=$(aws ecr get-login --no-include-email | awk '{print $6}')
else
aws_cli_exec=$(aws ecr get-login --no-include-email --registry-ids $REGISTRY_ID)
token=$(aws ecr get-login --no-include-email --registry-ids $REGISTRY_ID | awk '{print $6}')
fi
auth_n=$(echo AWS:${token} | base64 |tr -d "[:space:]")

Expand Down

0 comments on commit d8f8f32

Please sign in to comment.