fix: DOCKER_CONFIG

This commit is contained in:
ange 2025-10-21 19:04:25 +00:00
parent 46b20aa03d
commit f06990e7bc
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D
2 changed files with 5 additions and 3 deletions

View file

@ -1,3 +1,3 @@
FROM docker.io/moby/buildkit:master-rootless
FROM docker.io/moby/buildkit:v0.25.1-rootless
COPY entrypoint.sh /usr/local/bin/
ENTRYPOINT ["entrypoint.sh"]

View file

@ -1,5 +1,8 @@
#!/bin/sh -ex
export DOCKER_CONFIG="$HOME/.docker"
mkdir -p "$DOCKER_CONFIG"
#shellcheck disable=SC1091
[ -f .env ] && . ./.env
@ -17,8 +20,7 @@ cat <<EOF > "$DOCKER_CONFIG/config.json"
{
"auths": {
"$GITHUB_SERVER_URL": {
"username": "$INPUT_USERNAME",
"password": "$INPUT_PASSWORD"
"auth": "$INPUT_USERNAME:$INPUT_PASSWORD"
}
}
}