fix: DOCKER_CONFIG
This commit is contained in:
parent
46b20aa03d
commit
f06990e7bc
2 changed files with 5 additions and 3 deletions
|
@ -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"]
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue