The command docker login -u _json_key --password-stdin https://gcr.io < ~/service-account.json works locally, but when I try to run it in a CI environment like Github Actions, I get the following error.
Error: Cannot perform an interactive login from a non TTY device
##[error]Process completed with exit code 1.