1
Some checks failed
Some checks failed
This commit is contained in:
parent
148e0bcb23
commit
c25518be71
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
set -eu;
|
||||
set -exu;
|
||||
|
||||
##
|
||||
## validate inputs
|
||||
|
@ -33,7 +33,7 @@ fi
|
|||
|
||||
echo '> Login'
|
||||
TOKEN=$(curl https://hub.docker.com/v2/users/login \
|
||||
--fail --silent --show-error \
|
||||
--fail --verbose --show-error \
|
||||
--header "Content-Type: application/json" \
|
||||
--data "{\"username\":\"$PLUGIN_USERNAME\",\"password\":\"$PLUGIN_PASSWORD\"}\"" | jq -r .token)
|
||||
TOKEN_SOURCE=$(echo "$TOKEN" | cut -d. -f2 | base64 -di 2>/dev/null | jq -r .source.type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue