Skip to content

Commit 44b5ca2

Browse files
authored
Use PLANETSCALE_SERVICE_TOKEN_ID
1 parent eab3174 commit 44b5ca2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.pscale/cli-helper-scripts/use-pscale-docker-image.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function pscale {
2121
if [ -n "$NO_DOCKER" ]; then
2222
command="pscale $@"
2323
else
24-
command="docker run -e PLANETSCALE_SERVICE_TOKEN=$PLANETSCALE_SERVICE_TOKEN -e PLANETSCALE_SERVICE_TOKEN_NAME=$PLANETSCALE_SERVICE_TOKEN_NAME -e HOME=/tmp -v $HOME/.config/planetscale:/tmp/.config/planetscale -e PSCALE_ALLOW_NONINTERACTIVE_SHELL=true --user $(id -u):$(id -g) --rm -i $tty planetscale/pscale:latest $@"
24+
command="docker run -e PLANETSCALE_SERVICE_TOKEN=$PLANETSCALE_SERVICE_TOKEN -e PLANETSCALE_SERVICE_TOKEN_ID=$PLANETSCALE_SERVICE_TOKEN_ID -e PLANETSCALE_SERVICE_TOKEN_NAME=$PLANETSCALE_SERVICE_TOKEN_NAME -e HOME=/tmp -v $HOME/.config/planetscale:/tmp/.config/planetscale -e PSCALE_ALLOW_NONINTERACTIVE_SHELL=true --user $(id -u):$(id -g) --rm -i $tty planetscale/pscale:latest $@"
2525
fi
2626

2727
# if command is auth and we are running in CI, we will use the script command to get a fake terminal
@@ -33,4 +33,4 @@ function pscale {
3333
$command
3434
fi
3535

36-
}
36+
}

0 commit comments

Comments
 (0)