diff --git a/Dockerfile b/Dockerfile index cca4828..ae30e1e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/entrypoint.sh b/entrypoint.sh index f5e6f29..18a8783 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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 < "$DOCKER_CONFIG/config.json" { "auths": { "$GITHUB_SERVER_URL": { - "username": "$INPUT_USERNAME", - "password": "$INPUT_PASSWORD" + "auth": "$INPUT_USERNAME:$INPUT_PASSWORD" } } }