asfd
Some checks failed
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/push/test/2 unknown status
ci/woodpecker/push/test/1 unknown status

This commit is contained in:
Stephan Schnabel 2025-06-11 22:03:04 +02:00
parent 911c11a863
commit 3b169eef4f
Signed by: stephan.schnabel
SSH key fingerprint: SHA256:99zuzxNGFb5/5P+E/O7ONU2qhUojUe/D8rIPTW+9Xp0
2 changed files with 3 additions and 9 deletions

View file

@ -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