We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4340ef commit e41e144Copy full SHA for e41e144
files/renew_token.sh
@@ -6,7 +6,7 @@ set -xe
6
CONFIG=/usr/local/openresty/nginx/conf/nginx.conf
7
AUTH=$(grep X-Forwarded-User $CONFIG | awk '{print $4}'| uniq|tr -d "\n\r")
8
9
-set +x
+
10
# retry till new get new token
11
while true; do
12
TOKEN=$(aws ecr get-authorization-token --query 'authorizationData[*].authorizationToken' --output text)
@@ -15,6 +15,7 @@ while true; do
15
sleep 30
16
done
17
18
+set +x
19
echo $TOKEN > /usr/local/openresty/nginx/token.txt
20
set -x
21
0 commit comments