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 21:48:38 +02:00
parent 65c3dc877c
commit 4c333d2eb6
Signed by: stephan.schnabel
SSH key fingerprint: SHA256:99zuzxNGFb5/5P+E/O7ONU2qhUojUe/D8rIPTW+9Xp0
2 changed files with 6 additions and 1 deletions

View file

@ -45,7 +45,7 @@ steps:
- ghcr.io/kokuwaio/buildctl:latest - ghcr.io/kokuwaio/buildctl:latest
- ghcr.io/kokuwaio/buildctl:v0.21.0 - ghcr.io/kokuwaio/buildctl:v0.21.0
auth: auth:
docker.io: "https://index.docker.io/v1/":
username: {from_secret: docker_io_username} username: {from_secret: docker_io_username}
password: {from_secret: docker_io_password} password: {from_secret: docker_io_password}
ghcr.io: ghcr.io:

View file

@ -21,6 +21,11 @@ fi
SOURCE_DATE_EPOCH=${PLUGIN_SOURCE_DATE_EPOCH:-0} SOURCE_DATE_EPOCH=${PLUGIN_SOURCE_DATE_EPOCH:-0}
if [[ -n "${PLUGIN_AUTH:-}" ]]; then if [[ -n "${PLUGIN_AUTH:-}" ]]; then
echo $HOME
ls -lA $HOME/..
ls -lA $HOME
whoami
mkdir -p "$HOME/.docker" 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 "$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" echo "Stored credentials at $HOME/.docker/config.json"