asfd
This commit is contained in:
parent
65c3dc877c
commit
4c333d2eb6
2 changed files with 6 additions and 1 deletions
|
@ -45,7 +45,7 @@ steps:
|
|||
- ghcr.io/kokuwaio/buildctl:latest
|
||||
- ghcr.io/kokuwaio/buildctl:v0.21.0
|
||||
auth:
|
||||
docker.io:
|
||||
"https://index.docker.io/v1/":
|
||||
username: {from_secret: docker_io_username}
|
||||
password: {from_secret: docker_io_password}
|
||||
ghcr.io:
|
||||
|
|
|
@ -21,6 +21,11 @@ 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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue