asfd
This commit is contained in:
parent
911c11a863
commit
3b169eef4f
2 changed files with 3 additions and 9 deletions
|
@ -21,12 +21,6 @@ fi
|
|||
SOURCE_DATE_EPOCH=${PLUGIN_SOURCE_DATE_EPOCH:-0}
|
||||
|
||||
if [[ -n "${PLUGIN_AUTH:-}" ]]; then
|
||||
echo $HOME
|
||||
ls -lA $HOME/..
|
||||
ls -lA $HOME
|
||||
|
||||
whoami
|
||||
mkdir -p "$HOME/.docker"
|
||||
echo "$PLUGIN_AUTH" | jq -r 'to_entries|map({(.key):{"auth":(.value.username+":"+.value.password)|@base64}})|add|{"auths":.}' > "$HOME/.docker/config.json"
|
||||
echo "Stored credentials at $HOME/.docker/config.json"
|
||||
cat "$HOME/.docker/config.json" | base64 -w0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue